2009-12-15 23:14:24 +03:00
|
|
|
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
2007-10-12 23:38:20 +04:00
|
|
|
|
2008-11-18 22:15:30 +03:00
|
|
|
// Note: GCC doesn't produce any of the following errors.
|
2008-11-24 02:12:31 +03:00
|
|
|
@interface Super @end // expected-note {{previous definition is here}}
|
2007-10-12 23:38:20 +04:00
|
|
|
|
2008-11-24 01:46:27 +03:00
|
|
|
@interface MyWpModule @end // expected-note {{previous definition is here}}
|
2007-10-12 23:38:20 +04:00
|
|
|
|
|
|
|
@compatibility_alias MyAlias MyWpModule;
|
|
|
|
|
|
|
|
@compatibility_alias AliasForSuper Super;
|
|
|
|
|
2008-11-24 01:46:27 +03:00
|
|
|
@interface MyAlias : AliasForSuper // expected-error {{duplicate interface definition for class 'MyWpModule'}}
|
2007-10-12 23:38:20 +04:00
|
|
|
@end
|
|
|
|
|
2008-11-18 22:15:30 +03:00
|
|
|
@implementation MyAlias : AliasForSuper // expected-error {{conflicting super class name 'Super'}}
|
2007-10-12 23:38:20 +04:00
|
|
|
@end
|
|
|
|
|