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