FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.bugs / 900406_01.C
blob93e7af3f378744b50bc8052217c079c9ffa47874
1 // g++ 1.37.1 bug 900406_01
3 // The following code causes g++ to segfault.
5 // cfront 2.0 passes this test.
7 // keywords: segfault, operator new, array types, array bounds
9 void function0 ()
11   new int[];            // ERROR - causes segfault
14 void function1 ()
16   new int (*)[];        // ERROR - no size specified 
19 int main () { return 0; }