[cfe-commits] r38775 - /cfe/cfe/trunk/test/Preprocessor/macro_fn_varargs_iso.c

sabre at cs.uiuc.edu sabre at cs.uiuc.edu
Wed Jul 11 09:24:31 PDT 2007


Author: sabre
Date: Wed Jul 11 11:24:30 2007
New Revision: 38775

URL: http://llvm.org/viewvc/llvm-project?rev=38775&view=rev
Log:
new testcase for __VA_ARGS__

Added:
    cfe/cfe/trunk/test/Preprocessor/macro_fn_varargs_iso.c   (with props)

Added: cfe/cfe/trunk/test/Preprocessor/macro_fn_varargs_iso.c
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/test/Preprocessor/macro_fn_varargs_iso.c?rev=38775&view=auto

==============================================================================
--- cfe/cfe/trunk/test/Preprocessor/macro_fn_varargs_iso.c (added)
+++ cfe/cfe/trunk/test/Preprocessor/macro_fn_varargs_iso.c Wed Jul 11 11:24:30 2007
@@ -0,0 +1,11 @@
+
+// RUN: clang -E %s | grep 'foo{a, b, c, d, e}' &&
+// RUN: clang -E %s | grep 'foo2{d, C, B}' &&
+// RUN: clang -E %s | grep 'foo2{d,e, C, B}'
+
+#define va1(...) foo{a, __VA_ARGS__, e}
+va1(b, c, d)
+#define va2(a, b, ...) foo2{__VA_ARGS__, b, a}
+va2(B, C, d)
+va2(B, C, d,e)
+

Propchange: cfe/cfe/trunk/test/Preprocessor/macro_fn_varargs_iso.c

------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cfe/cfe/trunk/test/Preprocessor/macro_fn_varargs_iso.c

------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision





More information about the cfe-commits mailing list