blob: bdaeefe5a368549ac84ba4cca68f63581f8e326a [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
Chris Lattner5b250652008-11-23 22:46:27 +00006@interface MyWpModule @end // expected-note {{previous definition is here}}
Fariborz Jahaniandc36dc12007-10-12 19:38:20 +00007
8@compatibility_alias MyAlias MyWpModule;
9
10@compatibility_alias AliasForSuper Super;
11
Chris Lattner5b250652008-11-23 22:46:27 +000012@interface MyAlias : AliasForSuper // expected-error {{duplicate interface definition for class 'MyWpModule'}}
Fariborz Jahaniandc36dc12007-10-12 19:38:20 +000013@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