blob: 2b9369ba5f8a572743e245e6bb1fda3d39be390f [file] [log] [blame]
Fariborz Jahanian4b6df3f2007-10-04 00:22:33 +00001// RUN: clang -fsyntax-only -verify %s
2
Fariborz Jahanianbd51b872007-09-20 20:26:44 +00003@class FOO, BAR;
4@class FOO, BAR;
5
6@interface INTF : FOO // expected-error {{cannot find interface declaration for 'FOO', superclass of 'INTF'}}
7@end
8
9@interface FOO
10- (BAR*) Meth1;
11- (FOO*) Meth2;
12@end
13
14@interface INTF1 : FOO
15@end
16
17@interface INTF2 : INTF1
18@end
19
20
21@class INTF1, INTF2;
22
23@interface INTF2 : INTF1 // expected-error {{duplicate interface declaration for class 'INTF2'}}
24@end