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