* doc/invoke.texi: Document -std=c++17 and -std=gnu++17 and document
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1z / aggr-base5.C
blob5f6d9ad8beb1b89036b4c51db3920ee7ac12c4d7
1 // { dg-options "-std=c++17 -w" }
2 // { dg-do run }
4 struct A { };
5 struct B: A { int i; };
6 struct C: A, B { int j; };
8 constexpr C c = { {}, { {}, 1 }, 2 };
10 #define assert(X) do { if (!(X)) __builtin_abort(); } while(0)
11 int main()
13   assert (c.i == 1 && c.j == 2);