new testcase for __VA_ARGS__

llvm-svn: 38775
This commit is contained in:
Chris Lattner 2006-07-29 04:03:59 +00:00
parent 02f1f4f28b
commit 2bc48570b7
1 changed files with 11 additions and 0 deletions

View File

@ -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)