2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.dg / eh / spec5.C
blobbe8f327c0b7d5dc2dfcad73002fe84552687d64a
1 // Test for extension to allow incomplete types in an
2 // exception-specification for a declaration.
4 // { dg-do run }
5 // { dg-options "-fpermissive -w" }
7 struct A;
9 struct B
11   void f () throw (A);
14 struct A {};
16 void B::f () throw (A) {}
18 int main ()
20   B b;
21   b.f();