summaryrefslogtreecommitdiff
path: root/test/Preprocessor/macro_paste_bad.c
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2009-05-27 22:00:37 +0000
committerEli Friedman <eli.friedman@gmail.com>2009-05-27 22:00:37 +0000
commitcfcceab862141b7cc3df42ced5f421d76e536a36 (patch)
tree1b18420d77ea0ffe08d8513388b542061790686b /test/Preprocessor/macro_paste_bad.c
parent14674ffb81dccbc4e1bf78ab5b7987685819b445 (diff)
downloadclang-cfcceab862141b7cc3df42ced5f421d76e536a36.tar.gz
Make the bad paste diagnostic print the entire pasted token.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72497 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Preprocessor/macro_paste_bad.c')
-rw-r--r--test/Preprocessor/macro_paste_bad.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/Preprocessor/macro_paste_bad.c b/test/Preprocessor/macro_paste_bad.c
index b43d70b0c4..c3b6179021 100644
--- a/test/Preprocessor/macro_paste_bad.c
+++ b/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