You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cmake/Tests/CompileFeatures/cxx_unrestricted_unions.cpp

12 lines
139 B

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