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