summaryrefslogtreecommitdiffstats
path: root/clang/test/Preprocessor/assembler-with-cpp.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Preprocessor/assembler-with-cpp.c')
-rw-r--r--clang/test/Preprocessor/assembler-with-cpp.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/test/Preprocessor/assembler-with-cpp.c b/clang/test/Preprocessor/assembler-with-cpp.c
index e27cf2d9704..885e67b98c8 100644
--- a/clang/test/Preprocessor/assembler-with-cpp.c
+++ b/clang/test/Preprocessor/assembler-with-cpp.c
@@ -29,6 +29,8 @@
2: '
3: "
+// (balance quotes to keep editors happy): "'
+
// Empty char literals are ok.
// RUN: grep "4: ''" %t &&
4: ''
@@ -53,4 +55,12 @@
7: FOO(blarg)
+//
+#define T6() T6 #nostring
+#define T7(x) T7 #x
+T6()
+T7(foo)
+// RUN: grep 'T6 #nostring' %t &&
+// RUN: grep 'T7 "foo"' %t &&
+
// RUN: true
OpenPOWER on IntegriCloud