Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -triple i386-apple-darwin9 -emit-llvm %s -o - | FileCheck %s |
Fariborz Jahanian | 63e963c | 2009-11-16 18:57:01 +0000 | [diff] [blame] | 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 |