annotate clang/test/PCH/variables.h @ 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
parents 1d019706d866
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // RUN: %clang_cc1 -emit-pch -o variables.h.pch variables.h
anatofuz
parents:
diff changeset
2 // Do not mess with the whitespace in this file. It's important.
anatofuz
parents:
diff changeset
3
anatofuz
parents:
diff changeset
4
anatofuz
parents:
diff changeset
5
anatofuz
parents:
diff changeset
6
anatofuz
parents:
diff changeset
7 extern float y;
anatofuz
parents:
diff changeset
8 extern int *ip, x;
anatofuz
parents:
diff changeset
9
anatofuz
parents:
diff changeset
10 float z;
anatofuz
parents:
diff changeset
11
anatofuz
parents:
diff changeset
12 int z2 = 17;
anatofuz
parents:
diff changeset
13
anatofuz
parents:
diff changeset
14 #define MAKE_HAPPY(X) X##Happy
anatofuz
parents:
diff changeset
15 int MAKE_HAPPY(Very);
anatofuz
parents:
diff changeset
16
anatofuz
parents:
diff changeset
17 #define A_MACRO_IN_THE_PCH 492
anatofuz
parents:
diff changeset
18 #define FUNCLIKE_MACRO(X, Y) X ## Y
anatofuz
parents:
diff changeset
19
anatofuz
parents:
diff changeset
20 #define PASTE2(x,y) x##y
anatofuz
parents:
diff changeset
21 #define PASTE1(x,y) PASTE2(x,y)
anatofuz
parents:
diff changeset
22 #define UNIQUE(x) PASTE1(x,__COUNTER__)
anatofuz
parents:
diff changeset
23
anatofuz
parents:
diff changeset
24 int UNIQUE(a); // a0
anatofuz
parents:
diff changeset
25 int UNIQUE(a); // a1