1 // { dg-do run } 2 // Test that we allow simple throw specs on pointers. 3 f()4void f() throw () { } 5 void (*pf)() throw () = f; 6 7 struct A 8 { gA9 void g() throw () { } 10 static void (A::*pmf)() throw (); 11 }; 12 13 void (A::* A::pmf)() = &A::g; 14 main()15int main() 16 { 17 pf (); 18 A a; 19 (a.*A::pmf)(); 20 } 21