blob: b1e5c52823325f9721b9e440fbe6d35044cae8a2 [file] [log] [blame]
Reid Spencer5f016e22007-07-11 17:01:13 +00001
Daniel Dunbar4fcfde42009-11-08 01:45:36 +00002// RUN: clang-cc -E %s | grep 'foo{a, b, c, d, e}'
3// RUN: clang-cc -E %s | grep 'foo2{d, C, B}'
Daniel Dunbard7d5f022009-03-24 02:24:46 +00004// RUN: clang-cc -E %s | grep 'foo2{d,e, C, B}'
Reid Spencer5f016e22007-07-11 17:01:13 +00005
6#define va1(...) foo{a, __VA_ARGS__, e}
7va1(b, c, d)
8#define va2(a, b, ...) foo2{__VA_ARGS__, b, a}
9va2(B, C, d)
10va2(B, C, d,e)
11