This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
g++.other/eh4.C
- To: gdr at codesourcery dot com, gcc-patches at gcc dot gnu dot org
- Subject: g++.other/eh4.C
- From: Richard Henderson <rth at redhat dot com>
- Date: Sat, 17 Mar 2001 10:34:10 -0800
You clearly expected this test to emit an error message, since that was
the entire point of the associated patch. But you didn't write the test
case like the harness expects -- it wants at least a trailing dash after
the ERROR, so it was still failing the unexpected error test.
Fixed thus.
r~
* g++.old-deja/g++.other/eh4.C: Add expected error text.
Index: g++.other/eh4.C
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/g++.old-deja/g++.other/eh4.C,v
retrieving revision 1.1
diff -c -p -d -r1.1 eh4.C
*** eh4.C 2001/03/15 07:59:51 1.1
--- eh4.C 2001/03/17 18:29:02
*************** class foo {
*** 5,11 ****
public:
foo() {};
void throwMe () {
! throw *this; // ERROR
};
virtual void test () = 0;
};
--- 5,11 ----
public:
foo() {};
void throwMe () {
! throw *this; // ERROR - cannot be used in throw-expression
};
virtual void test () = 0;
};