[libcxx] r187358 - Add operator new[] to test. Partial fix for valgrind warning in http://llvm.org/bugs/show_bug.cgi?id=16703.
Howard Hinnant
hhinnant at apple.com
Mon Jul 29 07:43:42 PDT 2013
Author: hhinnant
Date: Mon Jul 29 09:43:42 2013
New Revision: 187358
URL: http://llvm.org/viewvc/llvm-project?rev=187358&view=rev
Log:
Add operator new[] to test. Partial fix for valgrind warning in http://llvm.org/bugs/show_bug.cgi?id=16703.
Modified:
libcxx/trunk/test/localization/locale.categories/category.ctype/facet.ctype.special/facet.ctype.char.dtor/dtor.pass.cpp
Modified: libcxx/trunk/test/localization/locale.categories/category.ctype/facet.ctype.special/facet.ctype.char.dtor/dtor.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/localization/locale.categories/category.ctype/facet.ctype.special/facet.ctype.char.dtor/dtor.pass.cpp?rev=187358&r1=187357&r2=187358&view=diff
==============================================================================
--- libcxx/trunk/test/localization/locale.categories/category.ctype/facet.ctype.special/facet.ctype.char.dtor/dtor.pass.cpp (original)
+++ libcxx/trunk/test/localization/locale.categories/category.ctype/facet.ctype.special/facet.ctype.char.dtor/dtor.pass.cpp Mon Jul 29 09:43:42 2013
@@ -19,6 +19,11 @@
unsigned delete_called = 0;
+void* operator new[](size_t sz)
+{
+ return operator new(sz);
+}
+
void operator delete[](void* p) throw()
{
operator delete(p);
More information about the cfe-commits
mailing list