forked from OSchip/llvm-project
[libc++][ranges][NFC] Remove extraneous cleanup checks.
There is no need to check the counters on `Counted` after destroying elements in the range because these tests are not testing `destroy`. Differential Revision: https://reviews.llvm.org/D115839
This commit is contained in:
parent
eb12e61384
commit
f195fd915e
|
@ -109,8 +109,6 @@ int main(int, char**) {
|
|||
assert(Counted::total_objects == N);
|
||||
|
||||
std::destroy(buf.begin(), buf.end());
|
||||
assert(Counted::current_objects == 0);
|
||||
assert(Counted::total_objects == N);
|
||||
Counted::reset();
|
||||
}
|
||||
|
||||
|
@ -125,8 +123,6 @@ int main(int, char**) {
|
|||
assert(Counted::total_objects == N);
|
||||
|
||||
std::destroy(buf.begin(), buf.end());
|
||||
assert(Counted::current_objects == 0);
|
||||
assert(Counted::total_objects == N);
|
||||
Counted::reset();
|
||||
}
|
||||
|
||||
|
|
|
@ -90,8 +90,6 @@ int main(int, char**) {
|
|||
assert(Counted::total_objects == N);
|
||||
|
||||
std::destroy(buf.begin(), buf.end());
|
||||
assert(Counted::current_objects == 0);
|
||||
assert(Counted::total_objects == N);
|
||||
Counted::reset();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue