You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
// Compile this with:
|
|
// g++ -g -Wall -shared -o libtest37-union-v1.so test37-union-v1.cc
|
|
|
|
struct S
|
|
{
|
|
int S_member0;
|
|
int S_member1;
|
|
};
|
|
|
|
union some_union_type
|
|
{
|
|
int m0;
|
|
char m1;
|
|
S m2;
|
|
};
|
|
|
|
void
|
|
foo(some_union_type*)
|
|
{
|
|
}
|