Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.old-deja / g++.brendan / new-array.C
blob5737c99bcd03b11dff1149a5e6a9bbf3259ee6ed
1 // { dg-do assemble  }
2 // GROUPS passed operator-new
3 typedef struct {
4         int a;
5 } AStruct;
7 void MakeBug() {
8         AStruct *job;
10         // This used to crash, it should now give error(s).
11         job = new AStruct[];// { dg-error "" } .*
13         job = new AStruct;
16 int main () {
17         MakeBug();