blob: 50e597c8d1a8bffe059d542f1fa1f0f54e279b19 [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 -triple i386-apple-darwin9 -emit-llvm %s -o - | FileCheck %s
Fariborz Jahanian63e963c2009-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