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