diff options
Diffstat (limited to 'clang/test/Preprocessor/macro_paste_bad.c')
| -rw-r--r-- | clang/test/Preprocessor/macro_paste_bad.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/test/Preprocessor/macro_paste_bad.c b/clang/test/Preprocessor/macro_paste_bad.c index b43d70b0c4e..c3b6179021a 100644 --- a/clang/test/Preprocessor/macro_paste_bad.c +++ b/clang/test/Preprocessor/macro_paste_bad.c @@ -1,7 +1,9 @@ // RUN: clang-cc -Eonly -verify -pedantic %s // pasting ""x"" and ""+"" does not give a valid preprocessing token -#define XYZ x ## + // expected-error {{pasting formed 'x', an invalid preprocessing token}} +#define XYZ x ## + // expected-error {{pasting formed 'x+', an invalid preprocessing token}} XYZ +#define XXYZ . ## test // expected-error {{pasting formed '.test', an invalid preprocessing token}} +XXYZ // GCC PR 20077 |

