blob: fd759e351029ab6735d7743d75f8b4316f570d8b [file] [log] [blame]
Fariborz Jahanian4ee39812009-12-14 17:13:18 +00001// RUN: clang -cc1 -triple i386-apple-darwin9 -emit-llvm %s -o - | FileCheck %s
Fariborz Jahanian9290ede2009-11-16 18:57:01 +00002
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