pp-record.c 420 B

12345678910111213141516171819202122232425262728293031323334
  1. // RUN: %clang_cc1 -fsyntax-only -detailed-preprocessing-record %s
  2. // http://llvm.org/PR11120
  3. #define STRINGIZE(text) STRINGIZE_I(text)
  4. #define STRINGIZE_I(text) #text
  5. #define INC pp-record.h
  6. #include STRINGIZE(INC)
  7. CAKE;
  8. #define DIR 1
  9. #define FNM(x) x
  10. FNM(
  11. #if DIR
  12. int a;
  13. #else
  14. int b;
  15. #endif
  16. )
  17. #define M1 c
  18. #define M2 int
  19. #define FM2(x,y) y x
  20. FM2(M1, M2);
  21. #define FM3(x) x
  22. FM3(
  23. #define M3 int x2
  24. )
  25. M3;