blob: 9b79c52d96294349c29d7f7b283672e6929970cd [file] [log] [blame]
Fariborz Jahanian64089ce2011-04-22 22:02:28 +00001// 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 Jahanian140ab232011-08-31 17:37:55 +000013-(void) im0 { self = [super init]; }
Fariborz Jahanian64089ce2011-04-22 22:02:28 +000014
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}}