aboutsummaryrefslogtreecommitdiff
path: root/test/Preprocessor/assembler-with-cpp.c
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2009-05-24 19:25:46 +0000
committerEli Friedman <eli.friedman@gmail.com>2009-05-24 19:25:46 +0000
commit4c3ba6c1944e6a4758f1b3a0aec8a7ff4c561051 (patch)
tree38d07b1e3b59383acb0c12b42eacb61fe0df0319 /test/Preprocessor/assembler-with-cpp.c
parentce9f4966bcfa404dbf1a7fddfb1f2f2c61b7629f (diff)
Make sure an invalid concatentaion doesn't insert whitespace before
the RHS. Fixes assembler-with-cpp issue reported on cfe-dev. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72370 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Preprocessor/assembler-with-cpp.c')
-rw-r--r--test/Preprocessor/assembler-with-cpp.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Preprocessor/assembler-with-cpp.c b/test/Preprocessor/assembler-with-cpp.c
index 885e67b98c..bb16880578 100644
--- a/test/Preprocessor/assembler-with-cpp.c
+++ b/test/Preprocessor/assembler-with-cpp.c
@@ -63,4 +63,9 @@ T7(foo)
// RUN: grep 'T6 #nostring' %t &&
// RUN: grep 'T7 "foo"' %t &&
+// Concatenation with period doesn't leave a space
+// RUN: grep '.T8' %t &&
+#define T8(A,B) A ## B
+T8(.,T8)
+
// RUN: true