summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.robertl/ice990323-1.C
blob: 41fed6ff5028e25efdba101075015c12c61277f2 (plain)
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
}