2009-12-16 04:14:24 +08:00
|
|
|
// RUN: %clang_cc1 -emit-pch -o variables.h.pch variables.h
|
2009-04-10 11:52:48 +08:00
|
|
|
// Do not mess with the whitespace in this file. It's important.
|
2009-04-12 04:52:19 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-04-10 06:27:44 +08:00
|
|
|
extern float y;
|
2009-04-10 11:52:48 +08:00
|
|
|
extern int *ip, x;
|
|
|
|
|
2009-04-10 06:27:44 +08:00
|
|
|
float z;
|
2009-04-10 11:52:48 +08:00
|
|
|
|
2009-04-15 05:18:50 +08:00
|
|
|
int z2 = 17;
|
2009-04-10 11:52:48 +08:00
|
|
|
|
|
|
|
#define MAKE_HAPPY(X) X##Happy
|
|
|
|
int MAKE_HAPPY(Very);
|
|
|
|
|
2009-04-11 06:13:17 +08:00
|
|
|
#define A_MACRO_IN_THE_PCH 492
|
2009-04-12 05:15:38 +08:00
|
|
|
#define FUNCLIKE_MACRO(X, Y) X ## Y
|
2009-04-13 09:29:17 +08:00
|
|
|
|
|
|
|
#define PASTE2(x,y) x##y
|
|
|
|
#define PASTE1(x,y) PASTE2(x,y)
|
|
|
|
#define UNIQUE(x) PASTE1(x,__COUNTER__)
|
|
|
|
|
|
|
|
int UNIQUE(a); // a0
|
|
|
|
int UNIQUE(a); // a1
|