diff options
author | François Dumont <frs.dumont@gmail.com> | 2024-10-24 20:30:16 +0200 |
---|---|---|
committer | François Dumont <fdumont@gcc.gnu.org> | 2024-10-24 20:44:10 +0200 |
commit | d01dc97a26d2f5034ca135f46094aa52c44cc90a (patch) | |
tree | 2f3537e3168ff7d46d7beb1329a9a9bf6284fd86 /libstdc++-v3 | |
parent | f7bcdf449148872d576b261e9bf385b0e12be0c0 (diff) | |
download | gcc-d01dc97a26d2f5034ca135f46094aa52c44cc90a.zip gcc-d01dc97a26d2f5034ca135f46094aa52c44cc90a.tar.gz gcc-d01dc97a26d2f5034ca135f46094aa52c44cc90a.tar.bz2 |
libstdc++: Fix test broken when using COW std::string
libstdc++-v3/ChangeLog:
* testsuite/23_containers/unordered_map/96088.cc (test03): Fix increments
value when _GLIBCXX_USE_CXX11_ABI is equal to 0.
Diffstat (limited to 'libstdc++-v3')
-rw-r--r-- | libstdc++-v3/testsuite/23_containers/unordered_map/96088.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libstdc++-v3/testsuite/23_containers/unordered_map/96088.cc b/libstdc++-v3/testsuite/23_containers/unordered_map/96088.cc index b5be7d0..ee41675 100644 --- a/libstdc++-v3/testsuite/23_containers/unordered_map/96088.cc +++ b/libstdc++-v3/testsuite/23_containers/unordered_map/96088.cc @@ -233,9 +233,8 @@ test03() um.insert(v.begin(), v.end()); VERIFY( um.size() == 1 ); - // Allocate array of buckets, a node, the std::string value and the - // std::string key (unless COW). - constexpr std::size_t increments = _GLIBCXX_USE_CXX11_ABI ? 4 : 3; + // Allocate array of buckets, a node, and the 2 std::string (unless COW). + constexpr std::size_t increments = _GLIBCXX_USE_CXX11_ABI ? 4 : 2; VERIFY( __gnu_test::counter::count() == origin + increments ); VERIFY( __gnu_test::counter::get()._M_increments == increments ); |