hanchenye-llvm-project/libcxx/test/support
Eric Fiselier 2cbc654d93 [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

llvm-svn: 224741
2014-12-22 22:38:59 +00:00
..
DefaultOnly.h
allocators.h
asan_testing.h [asan] Make vector asan annotations exception-friendly 2014-09-02 23:43:38 +00:00
cmpxchg_loop.h PR20546: Fix tests for compare_exchange_weak. 2014-09-06 20:38:25 +00:00
constexpr_char_traits.hpp Mark assign to be constepr only in c++14; can't have constexpr fns that return void in C++11 2014-06-10 18:52:57 +00:00
count_new.hpp [libcxx] Consolidate new/delete replacement in tests and disable it when using sanitizers. 2014-12-22 22:38:59 +00:00
counting_predicates.hpp Whitespace maintenance. Remove a bunch of tabs that snuck in. No functionality change 2014-10-18 11:03:33 +00:00
hexfloat.h
min_allocator.h Add bare_allocator archetype that implements the minimal possible allocator interface. 2014-08-15 04:15:41 +00:00
nasty_containers.hpp Implement LWG 2324: Insert iterator constructors should use addressof(). Add two new container classes to the test suite that overload operator &, and add test cases to the insert/front_insert/back_insert iterator tests that use these containers. 2014-03-03 19:20:40 +00:00
nothing_to_do.pass.cpp test commit 2014-07-24 18:41:56 +00:00
platform_support.h Fix platform_support.h's get_temp_file_name() on Newlib under __STRICT_ANSI__ 2014-12-11 20:56:40 +00:00
private_constructor.hpp
test_allocator.h Bug #19473. If you pass an allocator to std::function, we should use that allocator, not construct one from scratch. Add a test to make sure 2014-04-18 17:23:36 +00:00
test_iterators.h Since Eric poisoned the comma operator on all our test iterators, we no longer need 'comma_iterator'. Remove it from the test suite. 2014-11-18 16:15:00 +00:00