Author: sebor
Date: Wed Jun 28 18:59:50 2006
New Revision: 417921
URL: http://svn.apache.org/viewvc?rev=417921&view=rev
Log:
2006-06-28 Martin Sebor <[EMAIL PROTECTED]>
* 21.strings.cpp (_rw_dispatch): Detected and diagnosed
test logic error: null test callback function.
Modified:
incubator/stdcxx/trunk/tests/src/21.strings.cpp
Modified: incubator/stdcxx/trunk/tests/src/21.strings.cpp
URL:
http://svn.apache.org/viewvc/incubator/stdcxx/trunk/tests/src/21.strings.cpp?rev=417921&r1=417920&r2=417921&view=diff
==============================================================================
--- incubator/stdcxx/trunk/tests/src/21.strings.cpp (original)
+++ incubator/stdcxx/trunk/tests/src/21.strings.cpp Wed Jun 28 18:59:50 2006
@@ -1053,6 +1053,12 @@
TestFunc* const tfunc = _RWSTD_REINTERPRET_CAST (TestFunc*, farray [inx]);
+ if (0 == tfunc) {
+ rw_error (0, __FILE__, __LINE__,
+ "logic error: null test function for %{$FUNCSIG}");
+ return;
+ }
+
const bool reverse_iter =
StringIds::ReverseIterator == func.iter_id_
|| StringIds::ConstReverseIterator == func.iter_id_;