blob: 1f12b76055e883c41f7aa9b8e46bb0bb06ffd55b [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 -fsyntax-only -verify %s
Fariborz Jahanian4cabdfc2007-10-12 19:38:20 +00002
Steve Naroffcfe8bf32008-11-18 19:15:30 +00003// Note: GCC doesn't produce any of the following errors.
Chris Lattner5f4a6822008-11-23 23:12:31 +00004@interface Super @end // expected-note {{previous definition is here}}
Fariborz Jahanian4cabdfc2007-10-12 19:38:20 +00005
Chris Lattnerb8b96af2008-11-23 22:46:27 +00006@interface MyWpModule @end // expected-note {{previous definition is here}}
Fariborz Jahanian4cabdfc2007-10-12 19:38:20 +00007
8@compatibility_alias MyAlias MyWpModule;
9
10@compatibility_alias AliasForSuper Super;
11
Chris Lattnerb8b96af2008-11-23 22:46:27 +000012@interface MyAlias : AliasForSuper // expected-error {{duplicate interface definition for class 'MyWpModule'}}
Fariborz Jahanian4cabdfc2007-10-12 19:38:20 +000013@end
14
Steve Naroffcfe8bf32008-11-18 19:15:30 +000015@implementation MyAlias : AliasForSuper // expected-error {{conflicting super class name 'Super'}}
Fariborz Jahanian4cabdfc2007-10-12 19:38:20 +000016@end
17