variables.h 453 B

12345678910111213141516171819202122232425
  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. extern float y;
  4. extern int *ip, x;
  5. float z;
  6. int z2 = 17;
  7. #define MAKE_HAPPY(X) X##Happy
  8. int MAKE_HAPPY(Very);
  9. #define A_MACRO_IN_THE_PCH 492
  10. #define FUNCLIKE_MACRO(X, Y) X ## Y
  11. #define PASTE2(x,y) x##y
  12. #define PASTE1(x,y) PASTE2(x,y)
  13. #define UNIQUE(x) PASTE1(x,__COUNTER__)
  14. int UNIQUE(a); // a0
  15. int UNIQUE(a); // a1