OSDN Git Service

* g++.dg/ipa/iinline-1.C: Remove -c flag, add -fpie for PIC
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / eh / spec5.C
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
16 void B::f () throw (A) {}
17
18 int main ()
19 {
20   B b;
21   b.f();
22 }