blob: 664b6f0b16b7213db253f99f077c4f378155b4fb [file] [log] [blame]
Fariborz Jahanian63e963c2009-11-16 18:57:01 +00001// RUN: clang-cc -triple i386-apple-darwin9 -emit-llvm %s -o - | FileCheck %s
2
3@interface I0
4@end
5
6@implementation I0 // expected-warning {{'@end' is missing in implementation context}}
7- meth { return 0; }
8
9@interface I1 : I0
10@end
11
12@implementation I1 // expected-warning {{'@end' is missing in implementation context}}
13-(void) im0 { self = [super init]; }
14
15@interface I2 : I0
16- I2meth;
17@end
18
19@implementation I2 // expected-warning {{'@end' is missing in implementation context}}
20- I2meth { return 0; }
21
22@implementation I2(CAT) // expected-warning {{'@end' is missing in implementation context}}
23
24// CHECK: @"\01L_OBJC_CLASS_I1" = internal global