1 2 3 4 5 6 7 8 9
// { dg-do assemble } //test 2 struct A {}; void f() { struct A; // { dg-error "" } forward ref throw *(new A); // { dg-error "" } invalid use of undefined type }