Fortran: Suppress wrong End Of File error with user defined IO.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / constexpr-union2.C
blobc22ecc99efba83c6432d9bfc0a53db3ac4dbd772
1 // PR c++/51675
2 // { dg-do compile { target c++11 } }
4 union foo
6   int x = 0;
7   short y;
9   constexpr foo() = default;
12 union bar
14   int x;
15   short y;
17   constexpr bar() = default;    // { dg-error "constexpr" "" { target c++17_down } }