]> gcc.gnu.org Git - gcc.git/blame - gcc/testsuite/g++.old-deja/g++.eh/spec7.C
Implement P0012R1, Make exception specifications part of the type system.
[gcc.git] / gcc / testsuite / g++.old-deja / g++.eh / spec7.C
CommitLineData
6481daa9 1// { dg-do run }
a714e5c5
JM
2// Test that we allow simple throw specs on pointers.
3
4void f() throw () { }
5void (*pf)() throw () = f;
6
7struct A
8{
9 void g() throw () { }
10 static void (A::*pmf)() throw ();
11};
12
51dc6603 13void (A::* A::pmf)() throw() = &A::g;
a714e5c5
JM
14
15int main()
16{
17 pf ();
18 A a;
19 (a.*A::pmf)();
20}
This page took 8.360948 seconds and 5 git commands to generate.