summaryrefslogtreecommitdiffstats
path: root/clang/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
commit2d49c4f98de60b11ff56a6ae6399162f1aaa2db8 (patch)
treebae7d8b33eedc2993368f544aa5f4a452fe17596 /clang/test/Preprocessor/assembler-with-cpp.c
parent4486da5b78b47dc3c947ceb634d13a3d0ff0889e (diff)
downloadbcm5719-llvm-2d49c4f98de60b11ff56a6ae6399162f1aaa2db8.tar.gz
bcm5719-llvm-2d49c4f98de60b11ff56a6ae6399162f1aaa2db8.zip
Make sure an invalid concatentaion doesn't insert whitespace before
the RHS. Fixes assembler-with-cpp issue reported on cfe-dev. llvm-svn: 72370
Diffstat (limited to 'clang/test/Preprocessor/assembler-with-cpp.c')
-rw-r--r--clang/test/Preprocessor/assembler-with-cpp.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/test/Preprocessor/assembler-with-cpp.c b/clang/test/Preprocessor/assembler-with-cpp.c
index 885e67b98c8..bb168805785 100644
--- a/clang/test/Preprocessor/assembler-with-cpp.c
+++ b/clang/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
OpenPOWER on IntegriCloud