summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/eh/spec1.C
blob: 0bd0cbc0394cee8c78543da0bec8771a1fe8af52 (plain)
1
2
3
4
5
// Check that we allow an exception specification on a reference-to-function.
// { dg-do compile }

void f () throw ();
void (&fp)() throw () = f;