xref: /minix3/external/bsd/llvm/dist/clang/test/PCH/variables.h (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -emit-pch -o variables.h.pch variables.h
2*f4a2713aSLionel Sambuc // Do not mess with the whitespace in this file. It's important.
3*f4a2713aSLionel Sambuc 
4*f4a2713aSLionel Sambuc 
5*f4a2713aSLionel Sambuc 
6*f4a2713aSLionel Sambuc 
7*f4a2713aSLionel Sambuc extern float y;
8*f4a2713aSLionel Sambuc extern int *ip, x;
9*f4a2713aSLionel Sambuc 
10*f4a2713aSLionel Sambuc float z;
11*f4a2713aSLionel Sambuc 
12*f4a2713aSLionel Sambuc int z2 = 17;
13*f4a2713aSLionel Sambuc 
14*f4a2713aSLionel Sambuc #define MAKE_HAPPY(X) X##Happy
15*f4a2713aSLionel Sambuc int MAKE_HAPPY(Very);
16*f4a2713aSLionel Sambuc 
17*f4a2713aSLionel Sambuc #define A_MACRO_IN_THE_PCH 492
18*f4a2713aSLionel Sambuc #define FUNCLIKE_MACRO(X, Y) X ## Y
19*f4a2713aSLionel Sambuc 
20*f4a2713aSLionel Sambuc #define PASTE2(x,y) x##y
21*f4a2713aSLionel Sambuc #define PASTE1(x,y) PASTE2(x,y)
22*f4a2713aSLionel Sambuc #define UNIQUE(x) PASTE1(x,__COUNTER__)
23*f4a2713aSLionel Sambuc 
24*f4a2713aSLionel Sambuc int UNIQUE(a);  // a0
25*f4a2713aSLionel Sambuc int UNIQUE(a);  // a1
26