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