2007-10-12 23:38:20 +04:00
|
|
|
// RUN: clang -fsyntax-only -verify %s
|
|
|
|
|
2008-11-18 22:15:30 +03:00
|
|
|
// Note: GCC doesn't produce any of the following errors.
|
|
|
|
@interface Super @end // expected-error {{previous definition is here}}
|
2007-10-12 23:38:20 +04:00
|
|
|
|
2008-11-24 01:46:27 +03:00
|
|
|
@interface MyWpModule @end // expected-note {{previous definition is here}}
|
2007-10-12 23:38:20 +04:00
|
|
|
|
|
|
|
@compatibility_alias MyAlias MyWpModule;
|
|
|
|
|
|
|
|
@compatibility_alias AliasForSuper Super;
|
|
|
|
|
2008-11-24 01:46:27 +03:00
|
|
|
@interface MyAlias : AliasForSuper // expected-error {{duplicate interface definition for class 'MyWpModule'}}
|
2007-10-12 23:38:20 +04:00
|
|
|
@end
|
|
|
|
|
2008-11-18 22:15:30 +03:00
|
|
|
@implementation MyAlias : AliasForSuper // expected-error {{conflicting super class name 'Super'}}
|
2007-10-12 23:38:20 +04:00
|
|
|
@end
|
|
|
|
|