PR c++/79899
[official-gcc.git] / gcc / testsuite / g++.dg / other / error3.C
blob1e645630ab8d9542c1f92d9613e8071f8d14747f
1 // Test for proper error message formatting; the throw() should go inside
2 // the parens, as below.
4 void (*g() throw())();          // { dg-message "g\\(\\) throw" "" { target { ! c++1z } } }
5                                 // { dg-message "g\\(\\) noexcept" "" { target c++1z } .-1 }
6 void (*g())();                  // { dg-error "" "" }