diff options
Diffstat (limited to 'test/Preprocessor/macro_paste_bad.c')
-rw-r--r-- | test/Preprocessor/macro_paste_bad.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/Preprocessor/macro_paste_bad.c b/test/Preprocessor/macro_paste_bad.c index 0a028a4..ec10006 100644 --- a/test/Preprocessor/macro_paste_bad.c +++ b/test/Preprocessor/macro_paste_bad.c @@ -32,3 +32,5 @@ XX // expected-error {{attempt to use a poisoned identifier}} #define VA __VA_ ## ARGS__ int VA; // expected-warning {{__VA_ARGS__ can only appear in the expansion of a C99 variadic macro}} +#define LOG_ON_ERROR(x) x ## #y; // expected-error {{'#' is not followed by a macro parameter}} +LOG_ON_ERROR(0); |