blob: cecf0aac50fbb09d049315b649e287e7c664219d [file] [log] [blame]
// { dg-do assemble }
//test 2
struct A {};
void f()
{
struct A; // { dg-message "" } forward ref
throw *(new A); // { dg-error "" } invalid use of undefined type
}