You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared
Eric Fiselier 4eb5b6d5ee [libcxx] Consolidate new/delete replacement in tests and disable it when using sanitizers.
Summary:
MSAN and ASAN also replace new/delete which leads to a link error in these tests. Currently they are unsupported but I think it would be useful if these tests could run with sanitizers.

This patch creates a support header that consolidates the new/delete replacement functionality and checking.
When we are using sanitizers new and delete are no longer replaced and the checks always return true.

Reviewers: mclow.lists, danalbert, jroelofs, EricWF

Reviewed By: EricWF

Subscribers: cfe-commits

Differential Revision: http://reviews.llvm.org/D6562

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@224741 91177308-0d34-0410-b5e6-96231b3b80d8
11 years ago
..
util.smartptr.getdeleter Move test into test/std subdirectory. 11 years ago
util.smartptr.shared.assign Move test into test/std subdirectory. 11 years ago
util.smartptr.shared.cast Move test into test/std subdirectory. 11 years ago
util.smartptr.shared.cmp Move test into test/std subdirectory. 11 years ago
util.smartptr.shared.const Move test into test/std subdirectory. 11 years ago
util.smartptr.shared.create [libcxx] Consolidate new/delete replacement in tests and disable it when using sanitizers. 11 years ago
util.smartptr.shared.dest Move test into test/std subdirectory. 11 years ago
util.smartptr.shared.io Move test into test/std subdirectory. 11 years ago
util.smartptr.shared.mod Move test into test/std subdirectory. 11 years ago
util.smartptr.shared.obs Move test into test/std subdirectory. 11 years ago
util.smartptr.shared.spec Move test into test/std subdirectory. 11 years ago
test_deleter.h Move test into test/std subdirectory. 11 years ago
types.pass.cpp Move test into test/std subdirectory. 11 years ago