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/containers/associative/multiset
Eric Fiselier 11f64dcc58 Fix undefined behavior in container swap tests.
These swap tests were swapping non-POCS non-equal allocators which
is undefined behavior. This patch changes the tests to use allocators
which compare equal. In order to test that the allocators were not
swapped I added an "id" field to test_allocator which does not
participate in equality but does propagate across copies/swaps.

This patch is based off of D26623 which was submitted by STL.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@289358 91177308-0d34-0410-b5e6-96231b3b80d8
9 years ago
..
multiset.cons [libcxx] [test] D27027: Strip trailing whitespace. 9 years ago
multiset.special Fix undefined behavior in container swap tests. 9 years ago
allocator_mismatch.fail.cpp Add static_assert to set/multiset/map/multimap/forward_list/deque that the allocator's value_type match the container's value_type. vector/unordered/list/string already do this. Add tests for all the containers to verify this. 10 years ago
clear.pass.cpp Replace __cplusplus comparisons and dialect __has_feature checks with TEST_STD_VER. 10 years ago
count.pass.cpp [libcxx] [test] Replace _LIBCPP_STD_VER with TEST_STD_VER. 9 years ago
emplace.pass.cpp Replace __cplusplus comparisons and dialect __has_feature checks with TEST_STD_VER. 10 years ago
emplace_hint.pass.cpp Replace __cplusplus comparisons and dialect __has_feature checks with TEST_STD_VER. 10 years ago
empty.pass.cpp Replace __cplusplus comparisons and dialect __has_feature checks with TEST_STD_VER. 10 years ago
equal_range.pass.cpp [libcxx] [test] Replace _LIBCPP_STD_VER with TEST_STD_VER. 9 years ago
erase_iter.pass.cpp Replace __cplusplus comparisons and dialect __has_feature checks with TEST_STD_VER. 10 years ago
erase_iter_iter.pass.cpp Replace __cplusplus comparisons and dialect __has_feature checks with TEST_STD_VER. 10 years ago
erase_key.pass.cpp Replace __cplusplus comparisons and dialect __has_feature checks with TEST_STD_VER. 10 years ago
find.pass.cpp [libcxx] [test] Replace _LIBCPP_STD_VER with TEST_STD_VER. 9 years ago
incomplete_type.pass.cpp Cleanup node-type handling in the associative containers. 10 years ago
insert_allocator_requirements.pass.cpp Extract key to avoid preemptive mallocs in insert/emplace in associative containers 10 years ago
insert_cv.pass.cpp Replace __cplusplus comparisons and dialect __has_feature checks with TEST_STD_VER. 10 years ago
insert_initializer_list.pass.cpp [libcxx] [test] D27021: Fix MSVC warning C4389 "signed/unsigned mismatch", part 8/12. 9 years ago
insert_iter_cv.pass.cpp Replace __cplusplus comparisons and dialect __has_feature checks with TEST_STD_VER. 10 years ago
insert_iter_iter.pass.cpp Replace __cplusplus comparisons and dialect __has_feature checks with TEST_STD_VER. 10 years ago
insert_iter_rv.pass.cpp Replace __cplusplus comparisons and dialect __has_feature checks with TEST_STD_VER. 10 years ago
insert_rv.pass.cpp Replace __cplusplus comparisons and dialect __has_feature checks with TEST_STD_VER. 10 years ago
iterator.pass.cpp [libcxx] [test] D27021: Fix MSVC warning C4389 "signed/unsigned mismatch", part 8/12. 9 years ago
lower_bound.pass.cpp [libcxx] [test] Replace _LIBCPP_STD_VER with TEST_STD_VER. 9 years ago
max_size.pass.cpp [libcxx] Fix max_size() across all containers 9 years ago
scary.pass.cpp Fix warnings in array and assoc containers 10 years ago
size.pass.cpp Replace __cplusplus comparisons and dialect __has_feature checks with TEST_STD_VER. 10 years ago
types.pass.cpp Replace __cplusplus comparisons and dialect __has_feature checks with TEST_STD_VER. 10 years ago
upper_bound.pass.cpp [libcxx] [test] Replace _LIBCPP_STD_VER with TEST_STD_VER. 9 years ago