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 4 // DISABLE: mingw32 5 6 #define nil (void *)0 7 8 @interface NSObject 9 -init; 10 @end 11 12 @interface A : NSObject 13 -init; 14 -init2; 15 -foo; 16 +alloc; 17 @end 18 19 @implementation A 20 -(id) init { 21 [self init]; 22 id a; 23 [a init]; 24 a = [[A alloc] init]; 25 26 return self; 27 } 28 29 -(id) init2 { 30 [super init]; 31 return self; 32 } 33 34 -(id) foo { 35 [self init]; 36 [super init]; 37 38 return self; 39 } 40 @end 41