blob: 6bd7da19448e5bb0c6cdb59560f8edfbd447b6ab [file] [log] [blame]
Fariborz Jahanianccb4f312007-09-25 18:38:09 +00001typedef int INTF3; // expected-error {{previous definition is here}}
2
3@interface SUPER @end // expected-error {{previous definition is here}}
4
5@interface OBJECT @end
6
7@interface INTF : OBJECT
8@end
9
10@implementation INTF @end
11
12@implementation INTF // expected-error {{reimplementation of class 'INTF'}}
13@end
14
15
16@interface INTF1 : OBJECT
17@end
18
19@implementation INTF1 : SUPER // expected-error {{conflicting super class name 'SUPER'}}
20@end
21
22@interface INTF2
23@end
24
25@implementation INTF2 : SUPR // expected-error {{cannot find interface declaration for 'SUPR', superclass of 'INTF2'}}
26@end
27
28@implementation INTF3 @end // expected-error {{redefinition of 'INTF3' as different kind of symbol}}
29
30@implementation INTF4 @end // expected-warning {{cannot find interface declaration for 'INTF4'}}
31