annotate clang/test/Parser/objc-alias-printing.m @ 222:81f6424ef0e3 llvm-original

LLVM original branch
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sun, 18 Jul 2021 22:10:01 +0900 (2021-07-18)
parents 1d019706d866
children c4bab56944e8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // RUN: %clang_cc1 -ast-print %s
anatofuz
parents:
diff changeset
2
anatofuz
parents:
diff changeset
3 @protocol P1 @end
anatofuz
parents:
diff changeset
4 @protocol P2 @end
anatofuz
parents:
diff changeset
5
anatofuz
parents:
diff changeset
6 @interface INTF @end
anatofuz
parents:
diff changeset
7
anatofuz
parents:
diff changeset
8 @compatibility_alias alias INTF;
anatofuz
parents:
diff changeset
9
anatofuz
parents:
diff changeset
10
anatofuz
parents:
diff changeset
11 int foo ()
anatofuz
parents:
diff changeset
12 {
anatofuz
parents:
diff changeset
13 INTF *pi;
anatofuz
parents:
diff changeset
14 INTF<P2,P1> *pi2;
anatofuz
parents:
diff changeset
15 alias *p;
anatofuz
parents:
diff changeset
16 alias<P1,P2> *p2;
anatofuz
parents:
diff changeset
17 return pi2 == p2;
anatofuz
parents:
diff changeset
18 }