summaryrefslogtreecommitdiffstats
path: root/clang/test/Preprocessor/output_paste_avoid.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Preprocessor/output_paste_avoid.c')
-rw-r--r--clang/test/Preprocessor/output_paste_avoid.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/Preprocessor/output_paste_avoid.c b/clang/test/Preprocessor/output_paste_avoid.c
index 842063a9084..065c73e9390 100644
--- a/clang/test/Preprocessor/output_paste_avoid.c
+++ b/clang/test/Preprocessor/output_paste_avoid.c
@@ -1,5 +1,6 @@
// RUN: clang -E %s | grep '+ + - - + + = = =' &&
// RUN: clang -E %s | not grep -F '...'
+// RUN: clang -E %s | not grep -F 'L"str"'
// This should print as ".. ." to avoid turning into ...
#define y(a) ..a
@@ -10,3 +11,8 @@ y(.)
#define f(x) =x=
+PLUS -EMPTY- PLUS+ f(=)
+
+// Should expand to L "str" not L"str"
+#define test(x) L#x
+test(str)
+
OpenPOWER on IntegriCloud