This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

g++.other/eh4.C


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;
  };


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]