mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-19 03:25:54 -04:00
[libcxx] [test] Don't assert that moved-from containers with non-POCMA allocators are empty.
This commit is contained in:
parent
e050256377
commit
45f630d729
@ -103,7 +103,7 @@ int main(int, char**)
|
|||||||
assert(m3 == m2);
|
assert(m3 == m2);
|
||||||
assert(m3.get_allocator() == A(5));
|
assert(m3.get_allocator() == A(5));
|
||||||
assert(m3.key_comp() == C(5));
|
assert(m3.key_comp() == C(5));
|
||||||
assert(m1.empty());
|
LIBCPP_ASSERT(m1.empty());
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
typedef std::pair<MoveOnly, MoveOnly> V;
|
typedef std::pair<MoveOnly, MoveOnly> V;
|
||||||
|
@ -103,7 +103,7 @@ int main(int, char**)
|
|||||||
assert(m3 == m2);
|
assert(m3 == m2);
|
||||||
assert(m3.get_allocator() == A(5));
|
assert(m3.get_allocator() == A(5));
|
||||||
assert(m3.key_comp() == C(5));
|
assert(m3.key_comp() == C(5));
|
||||||
assert(m1.empty());
|
LIBCPP_ASSERT(m1.empty());
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
typedef std::pair<MoveOnly, MoveOnly> V;
|
typedef std::pair<MoveOnly, MoveOnly> V;
|
||||||
|
@ -101,7 +101,7 @@ int main(int, char**)
|
|||||||
assert(m3 == m2);
|
assert(m3 == m2);
|
||||||
assert(m3.get_allocator() == A(5));
|
assert(m3.get_allocator() == A(5));
|
||||||
assert(m3.key_comp() == C(5));
|
assert(m3.key_comp() == C(5));
|
||||||
assert(m1.empty());
|
LIBCPP_ASSERT(m1.empty());
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
typedef MoveOnly V;
|
typedef MoveOnly V;
|
||||||
|
@ -101,7 +101,7 @@ int main(int, char**)
|
|||||||
assert(m3 == m2);
|
assert(m3 == m2);
|
||||||
assert(m3.get_allocator() == A(5));
|
assert(m3.get_allocator() == A(5));
|
||||||
assert(m3.key_comp() == C(5));
|
assert(m3.key_comp() == C(5));
|
||||||
assert(m1.empty());
|
LIBCPP_ASSERT(m1.empty());
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
typedef MoveOnly V;
|
typedef MoveOnly V;
|
||||||
|
@ -31,7 +31,7 @@ int main(int, char**)
|
|||||||
std::vector<bool, test_allocator<bool> > l2(test_allocator<bool>(5));
|
std::vector<bool, test_allocator<bool> > l2(test_allocator<bool>(5));
|
||||||
l2 = std::move(l);
|
l2 = std::move(l);
|
||||||
assert(l2 == lo);
|
assert(l2 == lo);
|
||||||
assert(l.empty());
|
LIBCPP_ASSERT(l.empty());
|
||||||
assert(l2.get_allocator() == lo.get_allocator());
|
assert(l2.get_allocator() == lo.get_allocator());
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user