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