aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/constexpr-union3.C
blob: ecae28dcc5bde7b40df361616d0a43c27989de8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// PR c++/51675
// { dg-do compile { target c++11 } }

union foo
{
  int x;
  short y;

  constexpr foo(): x(0) { }
};

constexpr foo f;