[libcxx] r272679 - Found a couple bugs in the test suite. No functionality change.
Marshall Clow via cfe-commits
cfe-commits at lists.llvm.org
Tue Jun 14 08:25:46 PDT 2016
Author: marshall
Date: Tue Jun 14 10:25:46 2016
New Revision: 272679
URL: http://llvm.org/viewvc/llvm-project?rev=272679&view=rev
Log:
Found a couple bugs in the test suite. No functionality change.
Modified:
libcxx/trunk/test/std/containers/unord/unord.multiset/unord.multiset.swap/swap_noexcept.pass.cpp
libcxx/trunk/test/std/containers/unord/unord.set/unord.set.swap/swap_noexcept.pass.cpp
libcxx/trunk/test/std/experimental/memory/memory.resource.aliases/header_unordered_set_synop.pass.cpp
Modified: libcxx/trunk/test/std/containers/unord/unord.multiset/unord.multiset.swap/swap_noexcept.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/containers/unord/unord.multiset/unord.multiset.swap/swap_noexcept.pass.cpp?rev=272679&r1=272678&r2=272679&view=diff
==============================================================================
--- libcxx/trunk/test/std/containers/unord/unord.multiset/unord.multiset.swap/swap_noexcept.pass.cpp (original)
+++ libcxx/trunk/test/std/containers/unord/unord.multiset/unord.multiset.swap/swap_noexcept.pass.cpp Tue Jun 14 10:25:46 2016
@@ -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 <class T>
@@ -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
Modified: libcxx/trunk/test/std/containers/unord/unord.set/unord.set.swap/swap_noexcept.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/containers/unord/unord.set/unord.set.swap/swap_noexcept.pass.cpp?rev=272679&r1=272678&r2=272679&view=diff
==============================================================================
--- libcxx/trunk/test/std/containers/unord/unord.set/unord.set.swap/swap_noexcept.pass.cpp (original)
+++ libcxx/trunk/test/std/containers/unord/unord.set/unord.set.swap/swap_noexcept.pass.cpp Tue Jun 14 10:25:46 2016
@@ -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 <class T>
@@ -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
Modified: libcxx/trunk/test/std/experimental/memory/memory.resource.aliases/header_unordered_set_synop.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/experimental/memory/memory.resource.aliases/header_unordered_set_synop.pass.cpp?rev=272679&r1=272678&r2=272679&view=diff
==============================================================================
--- libcxx/trunk/test/std/experimental/memory/memory.resource.aliases/header_unordered_set_synop.pass.cpp (original)
+++ libcxx/trunk/test/std/experimental/memory/memory.resource.aliases/header_unordered_set_synop.pass.cpp Tue Jun 14 10:25:46 2016
@@ -60,7 +60,7 @@ int main()
static_assert(std::is_same<StdSet, PmrSet>::value, "");
}
{
- pmr::unordered_set<int, int> m;
+ pmr::unordered_set<int> m;
assert(m.get_allocator().resource() == pmr::get_default_resource());
}
{
@@ -79,7 +79,7 @@ int main()
static_assert(std::is_same<StdSet, PmrSet>::value, "");
}
{
- pmr::unordered_multiset<int, int> m;
+ pmr::unordered_multiset<int> m;
assert(m.get_allocator().resource() == pmr::get_default_resource());
}
}
More information about the cfe-commits
mailing list