Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/constexpr-union3.C

raw
1 // PR c++/51675
2 // { dg-do compile { target c++11 } }
3
4 union foo
5 {
6 int x;
7 short y;
8
9 constexpr foo(): x(0) { }
10 };
11
12 constexpr foo f;