summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/other/error3.C
blob: f781c2ba514dedf0a12a4d3bfc55df945de507b6 (plain)
1
2
3
4
5
6
// Test for proper error message formatting; the throw() should go inside
// the parens, as below.

void (*g() throw())();		// { dg-message "g\\(\\) throw" "" { target { ! c++17 } } }
				// { dg-message "g\\(\\) noexcept" "" { target c++17 } .-1 }
void (*g())();			// { dg-error "" }