aboutsummaryrefslogtreecommitdiff
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.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/clang/test/Preprocessor/assembler-with-cpp.c b/clang/test/Preprocessor/assembler-with-cpp.c
index 7a2830b..e27cf2d 100644
--- a/clang/test/Preprocessor/assembler-with-cpp.c
+++ b/clang/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