URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.brendan/] [crash29.C] - Rev 165
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do assemble }
// GROUPS passed old-abort
union Value
{
Value(){}
};
struct GlobalAddress
{// { dg-error "" } candidates .*
GlobalAddress(Value *nvar){}// { dg-error "" } .*
};
int
main()
{
new GlobalAddress(Value()); // internal error occured here// { dg-error "" } no matching function .*
//new GlobalAddress(new Value()); // This line is correct code
}
Go to most recent revision | Compare with Previous | Blame | View Log