1 // { dg-do assemble } 2 // g++ 1.36.1 bug 900211_03 3 4 // The following erroneous code causes g++ to segfault. 5 6 // Cfront 2.0 passes this test. 7 8 // keywords: segfault, operator new, arrays, undeclared, array bound 9 function()10void function () 11 { 12 char* new_base = new char[x]; // { dg-error "" } 13 } 14 main()15int main () { return 0; } 16