1 // Testcase from P0012r1
2 // { dg-options -std=c++1z }
4 void (*p)() throw(int); // { dg-error "dynamic exception specification" }
5 void (**pp)() noexcept = &p; // { dg-error "" } cannot convert to pointer to noexcept function
7 struct S { typedef void (*p)(); operator p(); };
8 void (*q)() noexcept = S(); // { dg-error "" } cannot convert to pointer to noexcept function