8sa1-gcc/gcc/testsuite/g++.old-deja/g++.other/anon2.C
Mark Mitchell cb96daa2dc decl2.c (find_representative_member): Rename to ...
* decl2.c (find_representative_member): Rename to ...
	(build_anon_union_vars): New function.
	(finish_anon_union): Fix stupidity of previous change.

From-SVN: r19920
1998-05-21 00:48:49 +00:00

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;
}