1 /* union cast */ 2 3 struct bar { 4 int a; 5 int b; 6 }; 7 8 union foo { 9 struct bar *a; 10 int b; 11 }; 12 13 void foo(void)14 foo(void) { 15 struct bar *a; 16 17 ((union foo)a).a; 18 } 19