1*67e74705SXin Li// RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s 2*67e74705SXin Li 3*67e74705SXin Li// Note: GCC doesn't produce any of the following errors. 4*67e74705SXin Li@interface Super @end // expected-note {{previous definition is here}} 5*67e74705SXin Li 6*67e74705SXin Li@interface MyWpModule @end // expected-note {{previous definition is here}} 7*67e74705SXin Li 8*67e74705SXin Li@compatibility_alias MyAlias MyWpModule; 9*67e74705SXin Li 10*67e74705SXin Li@compatibility_alias AliasForSuper Super; 11*67e74705SXin Li 12*67e74705SXin Li@implementation MyAlias : AliasForSuper // expected-error {{conflicting super class name 'Super'}} 13*67e74705SXin Li@end 14*67e74705SXin Li 15*67e74705SXin Li@interface MyAlias : AliasForSuper // expected-error {{duplicate interface definition for class 'MyWpModule'}} 16*67e74705SXin Li@end 17*67e74705SXin Li 18