testsuite: update mangling
[official-gcc.git] / gcc / testsuite / g++.dg / cpp2a / constexpr-init8.C
blob8bb9a9c8dbcf3041f2a583e5ec90cf1012f107e4
1 // PR c++/91353 - P1331R2: Allow trivial default init in constexpr contexts.
2 // { dg-do compile { target c++20 } }
4 struct S {
5   constexpr S(int) {}
6 };
8 struct W {
9   constexpr W(int) : s(8), p() {}
11   S s;
12   int *p;
15 constexpr auto a = W(42);