Author: sebor Date: Thu Jul 17 17:05:23 2008 New Revision: 677780 URL: http://svn.apache.org/viewvc?rev=677780&view=rev Log: 2008-07-17 Martin Sebor <[EMAIL PROTECTED]>
STDCXX-773 * test/strings/21.string.erase.cpp (test_erase): Asserted precondition to silence another bogus HP aCC 6/cadvise warning. Modified: stdcxx/branches/4.2.x/tests/strings/21.string.erase.cpp Modified: stdcxx/branches/4.2.x/tests/strings/21.string.erase.cpp URL: http://svn.apache.org/viewvc/stdcxx/branches/4.2.x/tests/strings/21.string.erase.cpp?rev=677780&r1=677779&r2=677780&view=diff ============================================================================== --- stdcxx/branches/4.2.x/tests/strings/21.string.erase.cpp (original) +++ stdcxx/branches/4.2.x/tests/strings/21.string.erase.cpp Thu Jul 17 17:05:23 2008 @@ -410,6 +410,10 @@ const std::size_t match = rw_match (nres + tcase.off, &(*res_iter), 1); + // asssert precondition to silence a bogus HP cadvise + // warning #20200-D: Potential null pointer dereference + RW_ASSERT (0 != nres); + rw_assert (1 == match, 0, tcase.line, "line %d. %{$FUNCALL} == %{#c}, got %{#c}", __LINE__, nres[tcase.off], *res_iter);