llvm-project/libcxx/test/std/containers/sequences/vector/vector.special
Eric Fiselier 1286bc577f 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.

llvm-svn: 289358
2016-12-11 03:41:12 +00:00
..
db_swap_1.pass.cpp Replace __cplusplus comparisons and dialect __has_feature checks with TEST_STD_VER. 2016-06-14 21:31:42 +00:00
swap.pass.cpp Fix undefined behavior in container swap tests. 2016-12-11 03:41:12 +00:00
swap_noexcept.pass.cpp Make swap_noexcept.pass.cpp tests more portable. Patch from STL@microsoft.com. 2016-07-25 00:15:29 +00:00