Reid Spencer | 5f016e2 | 2007-07-11 17:01:13 +0000 | [diff] [blame] | 1 | |
Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 2 | // RUN: %clang_cc1 -E %s | grep 'foo{a, b, c, d, e}' |
3 | // RUN: %clang_cc1 -E %s | grep 'foo2{d, C, B}' | ||||
4 | // RUN: %clang_cc1 -E %s | grep 'foo2{d,e, C, B}' | ||||
Reid Spencer | 5f016e2 | 2007-07-11 17:01:13 +0000 | [diff] [blame] | 5 | |
6 | #define va1(...) foo{a, __VA_ARGS__, e} | ||||
7 | va1(b, c, d) | ||||
8 | #define va2(a, b, ...) foo2{__VA_ARGS__, b, a} | ||||
9 | va2(B, C, d) | ||||
10 | va2(B, C, d,e) | ||||
11 |