aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/alias-test-2.m
blob: 0a17846685cd58d931d6fe5bc72639afdf9c2506 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// 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