rt_gccstream/gcc/testsuite/g++.dg/other/error3.C

6 lines
198 B
C

// 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 "" "" }