aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorFrançois Dumont <fdumont@gcc.gnu.org>2023-08-21 07:02:06 +0200
committerFrançois Dumont <fdumont@gcc.gnu.org>2023-08-23 06:35:24 +0200
commit2aa8ebc0a606c2b26a4297beb65127080f42e365 (patch)
treec1ebc8febd352af613dcd033b26a05ed293ae20a /gcc
parent3beef5e6b5b12b5c90040c8485f1836e2dd6cf83 (diff)
downloadgcc-2aa8ebc0a606c2b26a4297beb65127080f42e365.zip
gcc-2aa8ebc0a606c2b26a4297beb65127080f42e365.tar.gz
gcc-2aa8ebc0a606c2b26a4297beb65127080f42e365.tar.bz2
libstdc++: Fix tests relying on operator new/delete overload
Fix tests that are checking for an expected allocation plan. They are failing if an allocation is taking place outside the test main. libstdc++-v3/ChangeLog * testsuite/util/replacement_memory_operators.h (counter::scope): New, capture and reset counter count at construction and restore it at destruction. (counter::check_new): Add scope instantiation. * testsuite/23_containers/unordered_map/96088.cc (main): Add counter::scope instantiation. * testsuite/23_containers/unordered_multimap/96088.cc (main): Likewise. * testsuite/23_containers/unordered_multiset/96088.cc (main): Likewise. * testsuite/23_containers/unordered_set/96088.cc (main): Likewise. * testsuite/ext/malloc_allocator/deallocate_local.cc (main): Likewise. * testsuite/ext/new_allocator/deallocate_local.cc (main): Likewise. * testsuite/ext/throw_allocator/deallocate_local.cc (main): Likewise. * testsuite/ext/pool_allocator/allocate_chunk.cc (started): New global. (operator new(size_t)): Check started. (main): Set/Unset started. * testsuite/17_intro/no_library_allocation.cc: New test case.
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions