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++.brendan/] [crash29.C] - Rev 823
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