1 // Test for extension to allow incomplete types in an
2 // exception-specification for a declaration.
3 
4 // { dg-do run }
5 // { dg-options "-fpermissive -w" }
6 
7 struct A;
8 
9 struct B
10 {
11   void f () throw (A);
12 };
13 
14 struct A {};
15 
f()16 void B::f () throw (A) {}
17 
main()18 int main ()
19 {
20   B b;
21   b.f();
22 }
23