1 // { dg-options "-w" }
2 // { dg-do run { target c++17 } }
3 
4 struct A { };
5 struct B: A { int i; };
6 struct C: B, A { int j; };
7 
8 constexpr C c = { { {}, 1 }, {}, 2 };
9 
10 #define assert(X) do { if (!(X)) __builtin_abort(); } while(0)
main()11 int main()
12 {
13   assert (c.i == 1 && c.j == 2);
14 }
15