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

void (*g() throw())();		// { dg-error "g\\(\\) throw" "" }
void (*g())();			// { dg-error "" "" }