struct A { union { struct { int x; }; struct { long y; }; }; }; struct A foo() { struct A a; a.x = 0; a.y = 0x0102030405060708ULL; return a; }