| 1 |
// Test for proper error message formatting; the throw() should go inside |
| 2 |
// the parens, as below. |
| 3 |
|
| 4 |
void (*g() throw())(); // { dg-message "g\\(\\) throw" "" { target { ! c++17 } } } |
| 5 |
// { dg-message "g\\(\\) noexcept" "" { target c++17 } .-1 } |
| 6 |
void (*g())(); // { dg-error "" } |