cb96daa2dc
* decl2.c (find_representative_member): Rename to ... (build_anon_union_vars): New function. (finish_anon_union): Fix stupidity of previous change. From-SVN: r19920
32 lines
290 B
C
32 lines
290 B
C
extern "C" void abort (void);
|
|
|
|
static union {
|
|
int x1;
|
|
long x2;
|
|
short x3;
|
|
long x4;
|
|
};
|
|
|
|
static union {
|
|
union {
|
|
union {
|
|
int z;
|
|
};
|
|
};
|
|
union {
|
|
union {
|
|
double d;
|
|
int i;
|
|
};
|
|
};
|
|
};
|
|
|
|
|
|
int main()
|
|
{
|
|
z = 3;
|
|
if (i != 3)
|
|
abort ();
|
|
d = 2.5;
|
|
}
|