[cfe-commits] r38794 - /cfe/cfe/trunk/test/Preprocessor/macro_rescan_varargs.c
sabre at cs.uiuc.edu
sabre at cs.uiuc.edu
Wed Jul 11 09:24:42 PDT 2007
Author: sabre
Date: Wed Jul 11 11:24:41 2007
New Revision: 38794
URL: http://llvm.org/viewvc/llvm-project?rev=38794&view=rev
Log:
new testcase
Added:
cfe/cfe/trunk/test/Preprocessor/macro_rescan_varargs.c (with props)
Added: cfe/cfe/trunk/test/Preprocessor/macro_rescan_varargs.c
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/test/Preprocessor/macro_rescan_varargs.c?rev=38794&view=auto
==============================================================================
--- cfe/cfe/trunk/test/Preprocessor/macro_rescan_varargs.c (added)
+++ cfe/cfe/trunk/test/Preprocessor/macro_rescan_varargs.c Wed Jul 11 11:24:41 2007
@@ -0,0 +1,10 @@
+// RUN: clang -E %s | grep -F "1: F, (, 'a', 'b', );" &&
+// RUN: clang -E %s | grep -F "2: 'a' + 'b';"
+#define LPAREN (
+#define RPAREN )
+#define F(x, y) x + y
+#define ELLIP_FUNC(...) __VA_ARGS__
+
+1: ELLIP_FUNC(F, LPAREN, 'a', 'b', RPAREN); /* 1st invocation */
+2: ELLIP_FUNC(F LPAREN 'a', 'b' RPAREN); /* 2nd invocation */
+
Propchange: cfe/cfe/trunk/test/Preprocessor/macro_rescan_varargs.c
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: cfe/cfe/trunk/test/Preprocessor/macro_rescan_varargs.c
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
More information about the cfe-commits
mailing list