2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.dg / eh / spec6.C
blobeb1177b07f515c017579ab5154035db031661122
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-error "" }
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" }