Fariborz Jahanian | 64089ce | 2011-04-22 22:02:28 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -triple i386-apple-darwin9 -fsyntax-only -verify %s |
| 2 | |
| 3 | @interface I0 |
| 4 | @end |
| 5 | |
| 6 | @implementation I0 // expected-error {{'@end' is missing in implementation context}} |
| 7 | - meth { return 0; } |
| 8 | |
| 9 | @interface I1 : I0 |
| 10 | @end |
| 11 | |
| 12 | @implementation I1 // expected-error {{'@end' is missing in implementation context}} |
Fariborz Jahanian | 140ab23 | 2011-08-31 17:37:55 +0000 | [diff] [blame] | 13 | -(void) im0 { self = [super init]; } |
Fariborz Jahanian | 64089ce | 2011-04-22 22:02:28 +0000 | [diff] [blame] | 14 | |
| 15 | @interface I2 : I0 |
| 16 | - I2meth; |
| 17 | @end |
| 18 | |
| 19 | @implementation I2 // expected-error {{'@end' is missing in implementation context}} |
| 20 | - I2meth { return 0; } |
| 21 | |
| 22 | @implementation I2(CAT) // expected-error {{'@end' is missing in implementation context}} |