2
0

macro_paste_commaext.c 323 B

12345678910111213
  1. // RUN: %clang_cc1 %s -E | grep 'V);'
  2. // RUN: %clang_cc1 %s -E | grep 'W, 1, 2);'
  3. // RUN: %clang_cc1 %s -E | grep 'X, 1, 2);'
  4. // RUN: %clang_cc1 %s -E | grep 'Y,);'
  5. // RUN: %clang_cc1 %s -E | grep 'Z,);'
  6. #define debug(format, ...) format, ## __VA_ARGS__)
  7. debug(V);
  8. debug(W, 1, 2);
  9. debug(X, 1, 2 );
  10. debug(Y, );
  11. debug(Z,);