Daily bump.
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.eh / spec7.C
blob2a4a989913dee2864c6bc44617b9b40264da2e76
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)() throw() = &A::g;
15 int main()
17   pf ();
18   A a;
19   (a.*A::pmf)();