2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.bugs / 900406_01.C
blobf99f73d723e0e24ead537ca0586442606a63c1dc
1 // { dg-do assemble  }
2 // g++ 1.37.1 bug 900406_01
4 // The following code causes g++ to segfault.
6 // cfront 2.0 passes this test.
8 // keywords: segfault, operator new, array types, array bounds
10 void function0 ()
12   new int[];            // { dg-error "" } causes segfault
15 void function1 ()
17   new int (*)[];        // { dg-error "" } no size specified 
20 int main () { return 0; }