mirror of
git://sourceware.org/git/libabigail.git
synced 2025-01-02 23:42:05 +00:00
21 lines
229 B
C++
21 lines
229 B
C++
|
// Compile this with:
|
||
|
// g++ -g -Wall -shared -o libtest38-union-v0.so test38-union-v0.cc
|
||
|
|
||
|
struct S
|
||
|
{
|
||
|
int S_member0;
|
||
|
int S_member1;
|
||
|
};
|
||
|
|
||
|
union some_union_type
|
||
|
{
|
||
|
int m0;
|
||
|
char m1;
|
||
|
S m2;
|
||
|
};
|
||
|
|
||
|
void
|
||
|
foo(some_union_type*)
|
||
|
{
|
||
|
}
|