macro_fn_varargs_iso.c 282 B

1234567891011
  1. // RUN: %clang_cc1 -E %s | grep 'foo{a, b, c, d, e}'
  2. // RUN: %clang_cc1 -E %s | grep 'foo2{d, C, B}'
  3. // RUN: %clang_cc1 -E %s | grep 'foo2{d,e, C, B}'
  4. #define va1(...) foo{a, __VA_ARGS__, e}
  5. va1(b, c, d)
  6. #define va2(a, b, ...) foo2{__VA_ARGS__, b, a}
  7. va2(B, C, d)
  8. va2(B, C, d,e)