aboutsummaryrefslogtreecommitdiff
path: root/test/Preprocessor/assembler-with-cpp.c
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-05-22 21:35:34 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-05-22 21:35:34 +0000
commitc25d8058958d9cda0d9d6216b475180ba2f7c71d (patch)
tree1b30bfa5622b3d35faa9465488db076418ec6d1a /test/Preprocessor/assembler-with-cpp.c
parent08d3e7c9ccbed9b26c301390d5997871b2dd41b7 (diff)
In assembler-with-cpp mode, don't error on '#' (stringize) operator applied to
non-argument names, pass the tokens through. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72283 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Preprocessor/assembler-with-cpp.c')
-rw-r--r--test/Preprocessor/assembler-with-cpp.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Preprocessor/assembler-with-cpp.c b/test/Preprocessor/assembler-with-cpp.c
index e27cf2d970..885e67b98c 100644
--- a/test/Preprocessor/assembler-with-cpp.c
+++ b/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