summaryrefslogtreecommitdiffstats
path: root/Tests/CompileFeatures/cxx_unrestricted_unions.cpp
blob: 03bdd7cb30f0b375b936c6c074ca56ab003f5240 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

struct point
{
  point() {}
  point(int x, int y)
    : x_(x)
    , y_(y)
  {
  }
  int x_, y_;
};
union u
{
  point p_;
  int i_;
  char const* s_;
};