macro_fn_preexpand.c 246 B

123456789101112
  1. // RUN: %clang_cc1 %s -E | grep 'pre: 1 1 X'
  2. // RUN: %clang_cc1 %s -E | grep 'nopre: 1A(X)'
  3. /* Preexpansion of argument. */
  4. #define A(X) 1 X
  5. pre: A(A(X))
  6. /* The ## operator disables preexpansion. */
  7. #undef A
  8. #define A(X) 1 ## X
  9. nopre: A(A(X))