libstdc++: Fix tests using wrong allocator type
authorJonathan Wakely <jwakely@redhat.com>
Thu, 30 Jul 2020 17:41:47 +0000 (18:41 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Thu, 30 Jul 2020 17:41:59 +0000 (18:41 +0100)
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.

libstdc++-v3/testsuite/23_containers/unordered_multiset/cons/noexcept_default_construct.cc
libstdc++-v3/testsuite/23_containers/unordered_set/cons/noexcept_default_construct.cc

index b7c0d80212599e01c04e0da8895b4362e6a82fa9..8511cb954215db991c3621904bd2e54ee97f25e2 100644 (file)
@@ -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");
index d60a81ffb7ce3cfe6249758625b858b7de00b875..44db4aec6cfbcfca7aa95fc344a48c6b174f14ef 100644 (file)
@@ -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");