blob: 3de2e722f7dce07e59c38afd970e6ba1bf297e6f [file] [log] [blame]
// { dg-options "-w" }
// { dg-do run { target c++17 } }
struct A { };
struct B: A { int i; };
struct C: B, A { int j; };
constexpr C c = { { {}, 1 }, {}, 2 };
#define assert(X) do { if (!(X)) __builtin_abort(); } while(0)
int main()
{
assert (c.i == 1 && c.j == 2);
}