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