summaryrefslogtreecommitdiffstats
path: root/Tests/CompileFeatures/cxx_unrestricted_unions.cpp
blob: 698fd61f9618fec314498d7a97dd7086236e141e (plain)
1
2
3
4
5
6
7
8
9
10
11

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