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