2012-04-07 02:12:22 +08:00
|
|
|
// RUN: %clang_cc1 -triple i386-apple-darwin9 -fsyntax-only -verify -Wno-objc-root-class %s
|
2011-04-23 06:02:28 +08:00
|
|
|
|
|
|
|
@interface I0
|
|
|
|
@end
|
|
|
|
|
2011-12-06 17:25:23 +08:00
|
|
|
@implementation I0 // expected-note {{implementation started here}}
|
2011-04-23 06:02:28 +08:00
|
|
|
- meth { return 0; }
|
|
|
|
|
2011-12-06 17:25:23 +08:00
|
|
|
@interface I1 : I0 // expected-error {{missing '@end'}}
|
2011-04-23 06:02:28 +08:00
|
|
|
@end
|
|
|
|
|
2011-12-06 17:25:23 +08:00
|
|
|
@implementation I1 // expected-note {{implementation started here}}
|
2012-02-08 00:50:53 +08:00
|
|
|
-(void) im0 { self = [super init]; } // expected-warning {{not found}}
|
2011-04-23 06:02:28 +08:00
|
|
|
|
2011-12-06 17:25:23 +08:00
|
|
|
@interface I2 : I0 // expected-error {{missing '@end'}}
|
2011-04-23 06:02:28 +08:00
|
|
|
- I2meth;
|
|
|
|
@end
|
|
|
|
|
2011-12-06 17:25:23 +08:00
|
|
|
@implementation I2 // expected-note {{implementation started here}}
|
2011-04-23 06:02:28 +08:00
|
|
|
- I2meth { return 0; }
|
|
|
|
|
2011-12-06 17:25:23 +08:00
|
|
|
@implementation I2(CAT) // expected-error 2 {{missing '@end'}} expected-note {{implementation started here}}
|