Rebase.
[official-gcc.git] / gcc / testsuite / g++.dg / eh / spec6.C
blobd6d817628916570a02532791ed8885d3c18e5e14
1 // Test that we don't allow incomplete types in an exception-specification
2 // for a definition, or at a call site.
4 // { dg-options "-fpermissive -w" }
6 struct A;                       // { dg-message "" }
8 struct B
10   void f () throw (A);
13 void B::f () throw (A) {}       // { dg-error "A" }
15 int main ()
17   B b;
18   b.f();                        // { dg-error "A" }