blob: 5737c99bcd03b11dff1149a5e6a9bbf3259ee6ed [file] [log] [blame]
// { dg-do assemble }
// GROUPS passed operator-new
typedef struct {
int a;
} AStruct;
void MakeBug() {
AStruct *job;
// This used to crash, it should now give error(s).
job = new AStruct[];// { dg-error "" } .*
job = new AStruct;
}
int main () {
MakeBug();
}