OSDN Git Service

* lib/g++-dg.exp (g++-dg-test): Add "repo" option.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.bugs / 900406_01.C
1 // { dg-do assemble  }
2 // g++ 1.37.1 bug 900406_01
3
4 // The following code causes g++ to segfault.
5
6 // cfront 2.0 passes this test.
7
8 // keywords: segfault, operator new, array types, array bounds
9
10 void function0 ()
11 {
12   new int[];            // { dg-error "" } causes segfault
13 }
14
15 void function1 ()
16 {
17   new int (*)[];        // { dg-error "" } no size specified 
18 }
19
20 int main () { return 0; }