1*67e74705SXin Li// RUN: %clang_cc1 -triple i386-apple-darwin9 -fsyntax-only -verify -Wno-objc-root-class %s 2*67e74705SXin Li 3*67e74705SXin Li@interface I0 // expected-note {{receiver is instance of class declared here}} 4*67e74705SXin Li@end 5*67e74705SXin Li 6*67e74705SXin Li@implementation I0 // expected-note {{implementation started here}} 7*67e74705SXin Li- meth { return 0; } 8*67e74705SXin Li 9*67e74705SXin Li@interface I1 : I0 // expected-error {{missing '@end'}} 10*67e74705SXin Li@end 11*67e74705SXin Li 12*67e74705SXin Li@implementation I1 // expected-note {{implementation started here}} 13*67e74705SXin Li-(void) im0 { self = [super init]; } // expected-warning {{not found}} 14*67e74705SXin Li 15*67e74705SXin Li@interface I2 : I0 // expected-error {{missing '@end'}} 16*67e74705SXin Li- I2meth; 17*67e74705SXin Li@end 18*67e74705SXin Li 19*67e74705SXin Li@implementation I2 // expected-note {{implementation started here}} 20*67e74705SXin Li- I2meth { return 0; } 21*67e74705SXin Li 22*67e74705SXin Li@implementation I2(CAT) // expected-error 2 {{missing '@end'}} expected-note {{implementation started here}} 23