Fariborz Jahanian | 4b6df3f | 2007-10-04 00:22:33 +0000 | [diff] [blame^] | 1 | // RUN: clang -fsyntax-only -verify %s |
| 2 | |
Fariborz Jahanian | 1d5b0e3 | 2007-09-20 17:54:07 +0000 | [diff] [blame] | 3 | @class SUPER, Y; |
| 4 | |
| 5 | @interface INTF :SUPER // expected-error {{cannot find interface declaration for 'SUPER', superclass of 'INTF'}} |
| 6 | @end |
| 7 | |
| 8 | @interface SUPER @end |
| 9 | |
| 10 | @interface INTF1 : SUPER |
| 11 | @end |
| 12 | |
| 13 | @interface INTF2 : INTF1 |
| 14 | @end |
| 15 | |
| 16 | @interface INTF3 : Y // expected-error {{cannot find interface declaration for 'Y', superclass of 'INTF3'}} |
| 17 | @end |
| 18 | |
| 19 | @interface INTF1 // expected-error {{duplicate interface declaration for class 'INTF1'}} |
| 20 | @end |