blob: 541da1c023fd33cbede1fb44fcb085a1d7aef269 (
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++2a } }
struct A
{
int i;
constexpr A() : i{} {}
};
struct B
{
A a;
};
constexpr B b[] = { {} };
|