blob: d0d0411f99dc06956b7f4a5b68e339c61283f9d0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// PR c++/91353 - P1331R2: Allow trivial default init in constexpr contexts.
// { dg-do compile { target c++20 } }
struct A
{
int i;
constexpr A() : i{} {}
};
struct B
{
A a;
};
constexpr B b[] = { {} };
|