Files
clang-p2996/clang/test/Preprocessor/macro_paste_commaext.c
Chris Lattner 0c8a1edb8b Fix a bug where we would incorrectly emit a "cannot paste" error
message when handling the GNU ", ## __VA_ARGS__" extension.  While
I'm at it, flag uses of this as extensions.

llvm-svn: 46503
2008-01-29 07:54:23 +00:00

14 lines
303 B
C

// RUN: clang %s -E | grep 'V);' &&
// RUN: clang %s -E | grep 'W, 1, 2);'
// RUN: clang %s -E | grep 'X, 1, 2);'
// RUN: clang %s -E | grep 'Y, );'
// RUN: clang %s -E | grep 'Z, );'
#define debug(format, ...) format, ## __VA_ARGS__)
debug(V);
debug(W, 1, 2);
debug(X, 1, 2 );
debug(Y, );
debug(Z,);