From 174432dbd52dddcb683ef14b3c8de083cad9d28c Mon Sep 17 00:00:00 2001 From: Marshall Clow Date: Tue, 14 Jun 2016 15:25:46 +0000 Subject: [PATCH] Found a couple bugs in the test suite. No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@272679 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../unord.multiset/unord.multiset.swap/swap_noexcept.pass.cpp | 2 ++ .../unord/unord.set/unord.set.swap/swap_noexcept.pass.cpp | 2 ++ .../header_unordered_set_synop.pass.cpp | 4 ++-- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/test/std/containers/unord/unord.multiset/unord.multiset.swap/swap_noexcept.pass.cpp b/test/std/containers/unord/unord.multiset/unord.multiset.swap/swap_noexcept.pass.cpp index c9f26e6cd..df9f18b14 100644 --- a/test/std/containers/unord/unord.multiset/unord.multiset.swap/swap_noexcept.pass.cpp +++ b/test/std/containers/unord/unord.multiset/unord.multiset.swap/swap_noexcept.pass.cpp @@ -63,6 +63,7 @@ struct some_hash typedef T value_type; some_hash() {} some_hash(const some_hash&); + std::size_t operator()(const T&) const { return 0; } }; template @@ -71,6 +72,7 @@ struct some_hash2 typedef T value_type; some_hash2() {} some_hash2(const some_hash2&); + std::size_t operator()(const T&) const { return 0; } }; #if TEST_STD_VER >= 14 diff --git a/test/std/containers/unord/unord.set/unord.set.swap/swap_noexcept.pass.cpp b/test/std/containers/unord/unord.set/unord.set.swap/swap_noexcept.pass.cpp index c84a18cf4..d35d79b31 100644 --- a/test/std/containers/unord/unord.set/unord.set.swap/swap_noexcept.pass.cpp +++ b/test/std/containers/unord/unord.set/unord.set.swap/swap_noexcept.pass.cpp @@ -63,6 +63,7 @@ struct some_hash typedef T value_type; some_hash() {} some_hash(const some_hash&); + std::size_t operator()(const T&) const { return 0; } }; template @@ -71,6 +72,7 @@ struct some_hash2 typedef T value_type; some_hash2() {} some_hash2(const some_hash2&); + std::size_t operator()(const T&) const { return 0; } }; #if TEST_STD_VER >= 14 diff --git a/test/std/experimental/memory/memory.resource.aliases/header_unordered_set_synop.pass.cpp b/test/std/experimental/memory/memory.resource.aliases/header_unordered_set_synop.pass.cpp index 697ed50ea..d427fe7c4 100644 --- a/test/std/experimental/memory/memory.resource.aliases/header_unordered_set_synop.pass.cpp +++ b/test/std/experimental/memory/memory.resource.aliases/header_unordered_set_synop.pass.cpp @@ -60,7 +60,7 @@ int main() static_assert(std::is_same::value, ""); } { - pmr::unordered_set m; + pmr::unordered_set m; assert(m.get_allocator().resource() == pmr::get_default_resource()); } { @@ -79,7 +79,7 @@ int main() static_assert(std::is_same::value, ""); } { - pmr::unordered_multiset m; + pmr::unordered_multiset m; assert(m.get_allocator().resource() == pmr::get_default_resource()); } }