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