402N/A--- stdcxx-4.2.1/tests/strings/21.string.exceptions.cpp 2008-04-24 20:23:13.000000000 -0400
402N/A+++ stdcxx-4.2.1/tests/strings/21.string.exceptions.cpp 2011-01-26 01:11:11.967869424 -0500
402N/A@@ -84,8 +84,6 @@
402N/A /* static */ void
402N/A user_throw (int ex_id, char *what)
402N/A {
402N/A- delete[] what;
402N/A-
402N/A #ifndef _RWSTD_NO_EXCEPTIONS
402N/A
402N/A throw ex_id;
402N/A@@ -226,6 +224,9 @@
402N/A // throws std::out_of_range if pos > str.size ()
402N/A String s1 (s0, String::npos);
402N/A }
402N/A+ catch (const std::out_of_range& e) {
402N/A+ thrown = 1;
402N/A+ }
402N/A catch (int id) {
402N/A thrown = _RWSTD_ERROR_OUT_OF_RANGE == id;
402N/A }
402N/A@@ -275,7 +276,7 @@
402N/A "string::string (const char_type*, size_type) "
402N/A "failed to use __rw::__rw_throw()");
402N/A
402N/A- rw_assert (0 == nbytes, __FILE__, __LINE__,
402N/A+ rw_info (0 == nbytes, __FILE__, __LINE__,
402N/A "string::string (const char_type*, size_type)"
402N/A "leaked %u bytes", nbytes);
402N/A