Dead
[official-gcc.git] / gomp-20050608-branch / gcc / testsuite / g++.old-deja / g++.eh / spec7.C
blob2ef88a2490063f1cf187b954cdf038a9de57a629
1 // { dg-do run  }
2 // Test that we allow simple throw specs on pointers.
4 void f() throw () { }
5 void (*pf)() throw () = f;
7 struct A
9   void g() throw () { }
10   static void (A::*pmf)() throw ();
13 void (A::* A::pmf)() = &A::g;
15 int main()
17   pf ();
18   A a;
19   (a.*A::pmf)();