URL
https://opencores.org/ocsvn/scarts/scarts/trunk
Subversion Repositories scarts
[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.other/] [union4.C] - Rev 12
Compare with Previous | Blame | View Log
// { dg-do assemble }
// { dg-options "" }
// Origin: Mark Mitchell <mark@codesourcery.com>
union A
{
int i;
int j;
A () : i (3), j (2) {} // { dg-error "" } multiple initializations
};
union B
{
int i;
union {
int j;
};
B () : i (3), j (2) {} // { dg-error "" } multiple initializations
};
union C
{
union {
struct {
int i;
int j;
};
};
C () : i (3), j (2) {}
};