Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -emit-pch -o variables.h.pch variables.h |
Douglas Gregor | 14f7900 | 2009-04-10 03:52:48 +0000 | [diff] [blame] | 2 | // Do not mess with the whitespace in this file. It's important. |
Chris Lattner | 285d03f | 2009-04-11 20:52:19 +0000 | [diff] [blame] | 3 | |
| 4 | |
| 5 | |
| 6 | |
Douglas Gregor | 2cf2634 | 2009-04-09 22:27:44 +0000 | [diff] [blame] | 7 | extern float y; |
Douglas Gregor | 14f7900 | 2009-04-10 03:52:48 +0000 | [diff] [blame] | 8 | extern int *ip, x; |
| 9 | |
Douglas Gregor | 2cf2634 | 2009-04-09 22:27:44 +0000 | [diff] [blame] | 10 | float z; |
Douglas Gregor | 14f7900 | 2009-04-10 03:52:48 +0000 | [diff] [blame] | 11 | |
Douglas Gregor | 0b74891 | 2009-04-14 21:18:50 +0000 | [diff] [blame] | 12 | int z2 = 17; |
Douglas Gregor | 14f7900 | 2009-04-10 03:52:48 +0000 | [diff] [blame] | 13 | |
| 14 | #define MAKE_HAPPY(X) X##Happy |
| 15 | int MAKE_HAPPY(Very); |
| 16 | |
Chris Lattner | 531cc83 | 2009-04-10 22:13:17 +0000 | [diff] [blame] | 17 | #define A_MACRO_IN_THE_PCH 492 |
Chris Lattner | 7356a31 | 2009-04-11 21:15:38 +0000 | [diff] [blame] | 18 | #define FUNCLIKE_MACRO(X, Y) X ## Y |
Chris Lattner | c1f9d82 | 2009-04-13 01:29:17 +0000 | [diff] [blame] | 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 |