hanchenye-llvm-project/clang/test/Preprocessor/macro_fn_varargs_named.c

11 lines
215 B
C

// RUN: clang -E %s | grep '^a: x$' &&
// RUN: clang -E %s | grep '^b: x y, z,h$' &&
// RUN: clang -E %s | grep '^c: foo(x)$'
#define A(b, c...) b c
a: A(x)
b: A(x, y, z,h)
#define B(b, c...) foo(b, ## c)
c: B(x)