URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.other/] [union4.C] - Rev 149
Go to most recent revision | 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) {}
};
Go to most recent revision | Compare with Previous | Blame | View Log