aboutsummaryrefslogtreecommitdiff
path: root/test/Preprocessor/assembler-with-cpp.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Preprocessor/assembler-with-cpp.c')
-rw-r--r--test/Preprocessor/assembler-with-cpp.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/test/Preprocessor/assembler-with-cpp.c b/test/Preprocessor/assembler-with-cpp.c
index 7a2830b324..e27cf2d970 100644
--- a/test/Preprocessor/assembler-with-cpp.c
+++ b/test/Preprocessor/assembler-with-cpp.c
@@ -1,4 +1,4 @@
-// RUN: clang-cc -x assembler-with-cpp -E %s > %t &&
+// RUN: clang-cc -x assembler-with-cpp -fdollars-in-identifiers=0 -E %s > %t &&
#ifndef __ASSEMBLER__
#error "__ASSEMBLER__ not defined"
@@ -42,6 +42,15 @@
5: M5()
+// rdar://6804322
+// RUN: grep -F "6: blarg $foo" %t &&
+#define FOO(name) name ## $foo
+6: FOO(blarg)
+
+// RUN: clang-cc -x assembler-with-cpp -fdollars-in-identifiers=1 -E %s > %t &&
+// RUN: grep -F "7: blarg$foo" %t &&
+#define FOO(name) name ## $foo
+7: FOO(blarg)
// RUN: true