blob: 93e7af3f378744b50bc8052217c079c9ffa47874 [file] [log] [blame]
// 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[]; // ERROR - causes segfault
}
void function1 ()
{
new int (*)[]; // ERROR - no size specified
}
int main () { return 0; }