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 b7c0d80..8511cb9 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 d60a81f..44db4ae 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");