aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2020-07-30 18:41:47 +0100
committerJonathan Wakely <jwakely@redhat.com>2020-07-30 18:41:59 +0100
commit357beca8bce179315bdf112c0f1df20ff5874f39 (patch)
tree7f5bbd98ab823a1fe05704d2eca84a7082199913
parentcf5d0fc2d1adcd53b52c5d3f946822b687546c0b (diff)
downloadgcc-357beca8bce179315bdf112c0f1df20ff5874f39.zip
gcc-357beca8bce179315bdf112c0f1df20ff5874f39.tar.gz
gcc-357beca8bce179315bdf112c0f1df20ff5874f39.tar.bz2
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.
-rw-r--r--libstdc++-v3/testsuite/23_containers/unordered_multiset/cons/noexcept_default_construct.cc2
-rw-r--r--libstdc++-v3/testsuite/23_containers/unordered_set/cons/noexcept_default_construct.cc2
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 b7c0d80..8511cb9 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 d60a81f..44db4ae 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");