Debian Codegraph @

gcc/testsuite/g++.dg/cpp1y/nsdmi-aggr20.C

raw
1 // PR c++/109966
2 // { dg-do compile { target c++14 } }
3
4 #define SA(X) static_assert ((X),#X)
5
6 struct A {
7 int a;
8 int b = a;
9 };
10
11 struct B {
12 int x = 0;
13 int y[1]{A{x}.b};
14 };
15
16 constexpr B b = { };
17 SA(b.y[0] == 0);