llvm-project/clang/test/Sema/alias-test-2.m
Fariborz Jahanian c7afeebb12 Fixed a @compatible_alias bug. In the process, discovered unnecessary 2ndry lookup
ok class names and streamlined this logic to do the lookup once.

llvm-svn: 42926
2007-10-12 19:38:20 +00:00

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