1 // { dg-options "-std=c++17 -w" }
2 // { dg-do run }
3 
4 struct A { };
5 struct B: A { int i; };
6 struct C: A, B { 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