From d5bfe9030f646abbcb495fb5bbe46cf5b95c4557 Mon Sep 17 00:00:00 2001 From: Howard Hinnant Date: Mon, 29 Jul 2013 14:43:42 +0000 Subject: [PATCH] Add operator new[] to test. Partial fix for valgrind warning in http://llvm.org/bugs/show_bug.cgi?id=16703. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@187358 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../facet.ctype.special/facet.ctype.char.dtor/dtor.pass.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/localization/locale.categories/category.ctype/facet.ctype.special/facet.ctype.char.dtor/dtor.pass.cpp b/test/localization/locale.categories/category.ctype/facet.ctype.special/facet.ctype.char.dtor/dtor.pass.cpp index cc9a5126..93408a80 100644 --- a/test/localization/locale.categories/category.ctype/facet.ctype.special/facet.ctype.char.dtor/dtor.pass.cpp +++ b/test/localization/locale.categories/category.ctype/facet.ctype.special/facet.ctype.char.dtor/dtor.pass.cpp @@ -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);