[libcxx] [test] Don't assert that moved-from containers with non-POCMA allocators are empty.

This commit is contained in:
Billy Robert O'Neal III 2020-01-22 21:15:16 -08:00
parent e050256377
commit 45f630d729
5 changed files with 5 additions and 5 deletions

View File

@ -103,7 +103,7 @@ int main(int, char**)
assert(m3 == m2);
assert(m3.get_allocator() == A(5));
assert(m3.key_comp() == C(5));
assert(m1.empty());
LIBCPP_ASSERT(m1.empty());
}
{
typedef std::pair<MoveOnly, MoveOnly> V;

View File

@ -103,7 +103,7 @@ int main(int, char**)
assert(m3 == m2);
assert(m3.get_allocator() == A(5));
assert(m3.key_comp() == C(5));
assert(m1.empty());
LIBCPP_ASSERT(m1.empty());
}
{
typedef std::pair<MoveOnly, MoveOnly> V;

View File

@ -101,7 +101,7 @@ int main(int, char**)
assert(m3 == m2);
assert(m3.get_allocator() == A(5));
assert(m3.key_comp() == C(5));
assert(m1.empty());
LIBCPP_ASSERT(m1.empty());
}
{
typedef MoveOnly V;

View File

@ -101,7 +101,7 @@ int main(int, char**)
assert(m3 == m2);
assert(m3.get_allocator() == A(5));
assert(m3.key_comp() == C(5));
assert(m1.empty());
LIBCPP_ASSERT(m1.empty());
}
{
typedef MoveOnly V;

View File

@ -31,7 +31,7 @@ int main(int, char**)
std::vector<bool, test_allocator<bool> > l2(test_allocator<bool>(5));
l2 = std::move(l);
assert(l2 == lo);
assert(l.empty());
LIBCPP_ASSERT(l.empty());
assert(l2.get_allocator() == lo.get_allocator());
}
{