gcc/testsuite/g++.dg/cpp0x/pr118532.C
raw| 1 | // PR c++/118532 |
| 2 | // { dg-do compile { target c++11 } } |
| 3 | |
| 4 | struct S { |
| 5 | S (int, int, int); |
| 6 | #define I8 int, int, int, int, int, int, int, int |
| 7 | #define I64 I8, I8, I8, I8, I8, I8, I8, I8 |
| 8 | S (I64, I64, I64, I64, I8); |
| 9 | }; |
| 10 | |
| 11 | void |
| 12 | foo (S &) |
| 13 | { |
| 14 | } |
| 15 | |
| 16 | int |
| 17 | main () |
| 18 | { |
| 19 | S s = { |
| 20 | #undef I8 |
| 21 | #define I8 1, 2, 3, 4, 5, 6, 7, 8 |
| 22 | I64, I64, I64, I64, I8 |
| 23 | }; |
| 24 | foo (s); |
| 25 | } |