blob: 8636e3733d224471df5641ec59d763ae5b0d9d3c [file] [log] [blame]
John McCalld1e40d52011-10-02 01:16:38 +00001// 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
John McCall8f0e8d22011-06-15 23:25:17 +00003// RUN: diff %t %s.result
4
5@interface NSObject
6-init;
7@end
8
9@interface A : NSObject
10-init;
11-init2;
12-foo;
13+alloc;
14@end
15
16@implementation A
17-(id) init {
18 [self init];
19 id a;
20 [a init];
21 a = [[A alloc] init];
22
23 return self;
24}
25
26-(id) init2 {
27 [super init];
28 return self;
29}
30
31-(id) foo {
32 [self init];
33 [super init];
34
35 return self;
36}
37@end