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