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