blob: 5f3bfcbba7539479927bbcc7a513084186e720ab [file] [log] [blame]
Fariborz Jahaniandc36dc12007-10-12 19:38:20 +00001// RUN: clang -fsyntax-only -verify %s
2
Steve Naroff1422a622008-11-18 19:15:30 +00003// Note: GCC doesn't produce any of the following errors.
4@interface Super @end // expected-error {{previous definition is here}}
Fariborz Jahaniandc36dc12007-10-12 19:38:20 +00005
6@interface MyWpModule @end
7
8@compatibility_alias MyAlias MyWpModule;
9
10@compatibility_alias AliasForSuper Super;
11
12@interface MyAlias : AliasForSuper // expected-error {{duplicate interface declaration for class 'MyWpModule'}}
13@end
14
Steve Naroff1422a622008-11-18 19:15:30 +000015@implementation MyAlias : AliasForSuper // expected-error {{conflicting super class name 'Super'}}
Fariborz Jahaniandc36dc12007-10-12 19:38:20 +000016@end
17