Skip to content

Commit

Permalink
patch test
Browse files Browse the repository at this point in the history
  • Loading branch information
meyerzinn committed Apr 19, 2024
1 parent b3279a4 commit b221502
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libgalois/test/large-vector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ int main() {
GALOIS_ASSERT(num_constructed == max_cap);
GALOIS_ASSERT(addr == &the_vector[max_cap]);

// resize should call the destructor, but vector should stay mapped
// resize should not call destructor
GALOIS_ASSERT(num_destructed == 0);
the_vector.resize(0);
GALOIS_ASSERT(num_destructed == max_cap);
GALOIS_ASSERT(num_destructed == 0);
GALOIS_ASSERT(addr == &the_vector[max_cap]);

// this should not actually allocate memory!
Expand Down

0 comments on commit b221502

Please sign in to comment.