Daily bump.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp2a / constexpr-init11.C
blob79ad61895b083758f7dafe30fea75f78da18f313
1 // PR c++/91353 - P1331R2: Allow trivial default init in constexpr contexts.
2 // { dg-do compile { target c++20 } }
4 struct S {
5   int i;
6   constexpr S(int) : i(10) {}
7 };
9 struct W {
10   constexpr W(int) : s(8), p() {}
12   S s;
13   int *p;
16 constexpr auto a = W(42);