llvm-project/clang/test/Sema/alias-test-2.m

17 lines
342 B
Objective-C

// RUN: clang -fsyntax-only -verify %s
@interface Super @end
@interface MyWpModule @end
@compatibility_alias MyAlias MyWpModule;
@compatibility_alias AliasForSuper Super;
@interface MyAlias : AliasForSuper // expected-error {{duplicate interface declaration for class 'MyWpModule'}}
@end
@implementation MyAlias : AliasForSuper
@end