From 7f5c5d3e3cf94220cc747438c0ea020bcd194ab9 Mon Sep 17 00:00:00 2001 From: jason Date: Thu, 17 Jan 2002 12:54:36 +0000 Subject: * error.c (dump_type_suffix): Print the exception specs before recursing. (dump_function_decl): Here, too. * cp-tree.h (TMPL_PARMS_DEPTH): Cast to signed HOST_WIDE_INT. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@48947 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/testsuite/g++.dg/other/error3.C | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 gcc/testsuite/g++.dg/other/error3.C (limited to 'gcc/testsuite/g++.dg/other/error3.C') diff --git a/gcc/testsuite/g++.dg/other/error3.C b/gcc/testsuite/g++.dg/other/error3.C new file mode 100644 index 00000000000..bd5d7010945 --- /dev/null +++ b/gcc/testsuite/g++.dg/other/error3.C @@ -0,0 +1,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 "" "" } -- cgit v1.2.1