blob: 2a4a989913dee2864c6bc44617b9b40264da2e76 [file] [log] [blame]
// { dg-do run }
// Test that we allow simple throw specs on pointers.
void f() throw () { }
void (*pf)() throw () = f;
struct A
{
void g() throw () { }
static void (A::*pmf)() throw ();
};
void (A::* A::pmf)() throw() = &A::g;
int main()
{
pf ();
A a;
(a.*A::pmf)();
}