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
9 int main (int argc, const char * argv[]) {
11 NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
14 NSAutoreleasePool * pool = [NSAutoreleasePool new];
20 NSAutoreleasePool * pool1 = [[NSAutoreleasePool alloc] init];
28 NSAutoreleasePool *pool1;
30 pool1 = [NSAutoreleasePool new];
33 NSAutoreleasePool *pool2 = [[NSAutoreleasePool alloc] init];
40 int UIApplicationMain(int argc, char *argv[]);
42 int main2(int argc, char *argv[]) {
43 NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
44 int result = UIApplicationMain(argc, argv);
49 @interface Foo : NSObject
50 @property (assign) id myProp;
57 NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];