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