URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc3/] [gcc/] [testsuite/] [g++.old-deja/] [g++.bugs/] [900406_01.C] - Rev 305
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do assemble }
// g++ 1.37.1 bug 900406_01
// The following code causes g++ to segfault.
// cfront 2.0 passes this test.
// keywords: segfault, operator new, array types, array bounds
void function0 ()
{
new int[]; // { dg-error "" } causes segfault
}
void function1 ()
{
new int (*)[]; // { dg-error "" } no size specified
}
int main () { return 0; }
Go to most recent revision | Compare with Previous | Blame | View Log