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