1 // Compile this with: 2 // g++ -g -Wall -shared -o libtest39-union-v1.so test39-union-v1.cc 3 4 struct S 5 { 6 int S_member0; 7 int S_member1; 8 char S_member2; 9 }; 10 11 union some_union_type 12 { 13 int m0; 14 char m1; 15 S m2; 16 }; 17 18 void foo(some_union_type *)19foo(some_union_type*) 20 { 21 } 22