1
0

cxx_unrestricted_unions.cpp 139 B

1234567891011
  1. struct point {
  2. point() {}
  3. point(int x, int y) : x_(x), y_(y) {}
  4. int x_, y_;
  5. };
  6. union u {
  7. point p_;
  8. int i_;
  9. const char* s_;
  10. };