[cfe-commits] r38765 - /cfe/cfe/trunk/test/Preprocessor/output_paste_avoid.c
sabre at cs.uiuc.edu
sabre at cs.uiuc.edu
Wed Jul 11 09:24:26 PDT 2007
Author: sabre
Date: Wed Jul 11 11:24:26 2007
New Revision: 38765
URL: http://llvm.org/viewvc/llvm-project?rev=38765&view=rev
Log:
new testcase for paste avoidance
Added:
cfe/cfe/trunk/test/Preprocessor/output_paste_avoid.c (with props)
Added: cfe/cfe/trunk/test/Preprocessor/output_paste_avoid.c
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/test/Preprocessor/output_paste_avoid.c?rev=38765&view=auto
==============================================================================
--- cfe/cfe/trunk/test/Preprocessor/output_paste_avoid.c (added)
+++ cfe/cfe/trunk/test/Preprocessor/output_paste_avoid.c Wed Jul 11 11:24:26 2007
@@ -0,0 +1,12 @@
+// RUN: clang -E %s | grep '+ + - - + + = = =' &&
+// RUN: clang -E %s | not grep -F '...'
+
+// This should print as ".. ." to avoid turning into ...
+#define y(a) ..a
+y(.)
+
+#define PLUS +
+#define EMPTY
+#define f(x) =x=
++PLUS -EMPTY- PLUS+ f(=)
+
Propchange: cfe/cfe/trunk/test/Preprocessor/output_paste_avoid.c
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: cfe/cfe/trunk/test/Preprocessor/output_paste_avoid.c
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
More information about the cfe-commits
mailing list