1 // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fsyntax-only -fobjc-arc -x objective-c++ %s.result
2 // RUN: arcmt-test --args -triple x86_64-apple-darwin10 -fsyntax-only -x objective-c++ %s > %t
3 // RUN: diff %t %s.result
7 @interface NSString : NSObject
13 foo(NSString *s): s([s retain]){
14 NSAutoreleasePool *pool = [NSAutoreleasePool new];
15 [[[NSString string] retain] release];
20 ~foo(){ [s release]; }
23 foo &operator=(foo const &);
27 NSAutoreleasePool *pool = [NSAutoreleasePool new];
29 foo f([[NSString string] autorelease]);