Fariborz Jahanian | bd51b87 | 2007-09-20 20:26:44 +0000 | [diff] [blame] | 1 | @class FOO, BAR; |
2 | @class FOO, BAR; | ||||
3 | |||||
4 | @interface INTF : FOO // expected-error {{cannot find interface declaration for 'FOO', superclass of 'INTF'}} | ||||
5 | @end | ||||
6 | |||||
7 | @interface FOO | ||||
8 | - (BAR*) Meth1; | ||||
9 | - (FOO*) Meth2; | ||||
10 | @end | ||||
11 | |||||
12 | @interface INTF1 : FOO | ||||
13 | @end | ||||
14 | |||||
15 | @interface INTF2 : INTF1 | ||||
16 | @end | ||||
17 | |||||
18 | |||||
19 | @class INTF1, INTF2; | ||||
20 | |||||
21 | @interface INTF2 : INTF1 // expected-error {{duplicate interface declaration for class 'INTF2'}} | ||||
22 | @end |