[gcc(refs/users/aldyh/heads/ranger-staging)] libstdc++: Fix tests using wrong allocator type

Aldy Hernandez aldyh@gcc.gnu.org
Wed Aug 19 17:59:26 GMT 2020


https://gcc.gnu.org/g:357beca8bce179315bdf112c0f1df20ff5874f39

commit 357beca8bce179315bdf112c0f1df20ff5874f39
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Thu Jul 30 18:41:47 2020 +0100

    libstdc++: Fix tests using wrong allocator type
    
    libstdc++-v3/ChangeLog:
    
            * testsuite/23_containers/unordered_multiset/cons/noexcept_default_construct.cc:
            Use allocator with the correct value type.
            * testsuite/23_containers/unordered_set/cons/noexcept_default_construct.cc:
            Likewise.

Diff:
---
 .../23_containers/unordered_multiset/cons/noexcept_default_construct.cc | 2 +-
 .../23_containers/unordered_set/cons/noexcept_default_construct.cc      | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libstdc++-v3/testsuite/23_containers/unordered_multiset/cons/noexcept_default_construct.cc b/libstdc++-v3/testsuite/23_containers/unordered_multiset/cons/noexcept_default_construct.cc
index b7c0d802125..8511cb95421 100644
--- a/libstdc++-v3/testsuite/23_containers/unordered_multiset/cons/noexcept_default_construct.cc
+++ b/libstdc++-v3/testsuite/23_containers/unordered_multiset/cons/noexcept_default_construct.cc
@@ -62,7 +62,7 @@ template<typename _Tp>
   };
 
 using type4 = std::unordered_multiset<int, std::hash<int>, std::equal_to<int>,
-				      not_noexcept_dflt_cons_alloc<std::pair<const int, int>>>;
+				      not_noexcept_dflt_cons_alloc<int>>;
 
 static_assert(!std::is_nothrow_default_constructible<type4>::value,
 	      "not noexcept default constructible");
diff --git a/libstdc++-v3/testsuite/23_containers/unordered_set/cons/noexcept_default_construct.cc b/libstdc++-v3/testsuite/23_containers/unordered_set/cons/noexcept_default_construct.cc
index d60a81ffb7c..44db4aec6cf 100644
--- a/libstdc++-v3/testsuite/23_containers/unordered_set/cons/noexcept_default_construct.cc
+++ b/libstdc++-v3/testsuite/23_containers/unordered_set/cons/noexcept_default_construct.cc
@@ -62,7 +62,7 @@ template<typename _Tp>
   };
 
 using type4 = std::unordered_set<int, std::hash<int>, std::equal_to<int>,
-				  not_noexcept_dflt_cons_alloc<std::pair<const int, int>>>;
+				 not_noexcept_dflt_cons_alloc<int>>;
 
 static_assert(!std::is_nothrow_default_constructible<type4>::value,
 	      "not noexcept default constructible");


More information about the Libstdc++-cvs mailing list