summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/constexpr-union3.C
blob: bac9cabfe532c5417422993de85bf80232ec190b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// PR c++/51675
// { dg-options -std=c++11 }

union foo
{
  int x;
  short y;

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

constexpr foo f;