1 2 3 4 5 6 7 8 9 10
union x { int t; int k() { return 42;}; }; int main() { x y; y.t = y.k(); std::cout << y.t << std::endl; }
1
42