[cfe-commits] r38763 - in /cfe/cfe/trunk/test/Preprocessor: macro_paste_empty.c macro_paste_hard.c
sabre at cs.uiuc.edu
sabre at cs.uiuc.edu
Wed Jul 11 09:24:25 PDT 2007
Author: sabre
Date: Wed Jul 11 11:24:25 2007
New Revision: 38763
URL: http://llvm.org/viewvc/llvm-project?rev=38763&view=rev
Log:
Add test for pasting empty formals
Added:
cfe/cfe/trunk/test/Preprocessor/macro_paste_empty.c (with props)
Modified:
cfe/cfe/trunk/test/Preprocessor/macro_paste_hard.c
Added: cfe/cfe/trunk/test/Preprocessor/macro_paste_empty.c
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/test/Preprocessor/macro_paste_empty.c?rev=38763&view=auto
==============================================================================
--- cfe/cfe/trunk/test/Preprocessor/macro_paste_empty.c (added)
+++ cfe/cfe/trunk/test/Preprocessor/macro_paste_empty.c Wed Jul 11 11:24:25 2007
@@ -0,0 +1,13 @@
+// RUN: clang -E %s | grep 'a:Y' &&
+// RUN: clang -E %s | grep 'b:Y' &&
+// RUN: clang -E %s | grep 'c:YY'
+
+#define FOO(X) X ## Y
+a:FOO()
+
+#define FOO2(X) Y ## X
+b:FOO2()
+
+#define FOO3(X) X ## Y ## X ## Y ## X ## X
+c:FOO3()
+
Propchange: cfe/cfe/trunk/test/Preprocessor/macro_paste_empty.c
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: cfe/cfe/trunk/test/Preprocessor/macro_paste_empty.c
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Modified: cfe/cfe/trunk/test/Preprocessor/macro_paste_hard.c
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/test/Preprocessor/macro_paste_hard.c?rev=38763&r1=38762&r2=38763&view=diff
==============================================================================
--- cfe/cfe/trunk/test/Preprocessor/macro_paste_hard.c (original)
+++ cfe/cfe/trunk/test/Preprocessor/macro_paste_hard.c Wed Jul 11 11:24:25 2007
@@ -1,6 +1,6 @@
-; RUN: clang -E %s | grep '1: aaab 2' &&
-; RUN: clang -E %s | grep '2: 2 baaa' &&
-; RUN: clang -E %s | grep '3: 2 xx'
+// RUN: clang -E %s | grep '1: aaab 2' &&
+// RUN: clang -E %s | grep '2: 2 baaa' &&
+// RUN: clang -E %s | grep '3: 2 xx'
#define a(n) aaa ## n
#define b 2
More information about the cfe-commits
mailing list