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
|
|
|
|
|
|
|
@interface MyWpModule @end
|
|
|
|
|
|
|
|
@compatibility_alias MyAlias MyWpModule;
|
|
|
|
|
|
|
|
@compatibility_alias AliasForSuper Super;
|
|
|
|
|
|
|
|
@interface MyAlias : AliasForSuper // expected-error {{duplicate interface declaration for class 'MyWpModule'}}
|
|
|
|
@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
|
|
|
|
|