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