xref: /minix3/external/bsd/llvm/dist/clang/test/Preprocessor/macro_paste_commaext.c (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
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 
7 #define debug(format, ...) format, ## __VA_ARGS__)
8 debug(V);
9 debug(W, 1, 2);
10 debug(X, 1, 2 );
11 debug(Y, );
12 debug(Z,);
13 
14