commit | d5bfe9030f646abbcb495fb5bbe46cf5b95c4557 | [log] [tgz] |
---|---|---|
author | Howard Hinnant <hhinnant@apple.com> | Mon Jul 29 14:43:42 2013 +0000 |
committer | Howard Hinnant <hhinnant@apple.com> | Mon Jul 29 14:43:42 2013 +0000 |
tree | 43eddff71f8de69128d25402102605dd898191cf | |
parent | ff46409221ea91df3c5413ba06eed2f6ba963444 [diff] |
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
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 cc9a512..93408a8 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);