Author: faridz
Date: Wed Mar 26 07:29:17 2008
New Revision: 641324
URL: http://svn.apache.org/viewvc?rev=641324&view=rev
Log:
2008-03-26 Farid Zaripov <[EMAIL PROTECTED]>
* tests/regress/21.string.append.stdcxx-438.cpp: Don't define the
replacement
operators new and delete on compilers, that can't reliably replace the
operators.
Modified:
stdcxx/trunk/tests/regress/21.string.append.stdcxx-438.cpp
Modified: stdcxx/trunk/tests/regress/21.string.append.stdcxx-438.cpp
URL:
http://svn.apache.org/viewvc/stdcxx/trunk/tests/regress/21.string.append.stdcxx-438.cpp?rev=641324&r1=641323&r2=641324&view=diff
==============================================================================
--- stdcxx/trunk/tests/regress/21.string.append.stdcxx-438.cpp (original)
+++ stdcxx/trunk/tests/regress/21.string.append.stdcxx-438.cpp Wed Mar 26
07:29:17 2008
@@ -33,6 +33,9 @@
#include <new>
#include <string>
+#ifndef _RWSTD_NO_REPLACEABLE_NEW_DELETE
+ // disabled for compilers that can't reliably replace the operators
+
void* operator new (std::size_t n) throw (std::bad_alloc)
{
void* const ptr = std::malloc (n + sizeof n);
@@ -48,6 +51,8 @@
std::free ((std::size_t*)ptr - 1);
}
}
+
+#endif // _RWSTD_NO_REPLACEABLE_NEW_DELETE
struct InputIterator: std::iterator<std::input_iterator_tag, char>
{