diff options
author | Billy Robert O'Neal III <bion@microsoft.com> | 2017-04-06 23:50:33 +0000 |
---|---|---|
committer | Billy Robert O'Neal III <bion@microsoft.com> | 2017-04-06 23:50:33 +0000 |
commit | 8ac1fa16b2c8d1ece353a1c5e84604c7de31daaf (patch) | |
tree | 53e0d38a6f29fb17833cb719d4c162b4bea507bd | |
parent | eaeeaaf375c8824f641c0f02ed90582be73fc6ac (diff) | |
download | bcm5719-llvm-8ac1fa16b2c8d1ece353a1c5e84604c7de31daaf.tar.gz bcm5719-llvm-8ac1fa16b2c8d1ece353a1c5e84604c7de31daaf.zip |
Add noexcept(false) to more strongly indicate that not being noexcept is important for hash tests.
llvm-svn: 299735
-rw-r--r-- | libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.hash/hash_unique_ptr.pass.cpp | 2 | ||||
-rw-r--r-- | libcxx/test/std/utilities/optional/optional.hash/hash.pass.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.hash/hash_unique_ptr.pass.cpp b/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.hash/hash_unique_ptr.pass.cpp index 0afc9f62303..fb9843ac77a 100644 --- a/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.hash/hash_unique_ptr.pass.cpp +++ b/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.hash/hash_unique_ptr.pass.cpp @@ -50,7 +50,7 @@ namespace std { template <class T> struct hash<::min_pointer<T, std::integral_constant<size_t, 1>>> { - size_t operator()(::min_pointer<T, std::integral_constant<size_t, 1>> p) const { + size_t operator()(::min_pointer<T, std::integral_constant<size_t, 1>> p) const noexcept(false) { if (!p) return 0; return std::hash<T*>{}(std::addressof(*p)); } diff --git a/libcxx/test/std/utilities/optional/optional.hash/hash.pass.cpp b/libcxx/test/std/utilities/optional/optional.hash/hash.pass.cpp index 6d9a2607d14..4a0bf6d0370 100644 --- a/libcxx/test/std/utilities/optional/optional.hash/hash.pass.cpp +++ b/libcxx/test/std/utilities/optional/optional.hash/hash.pass.cpp @@ -26,7 +26,7 @@ namespace std { template <> struct hash<B> { - size_t operator()(B const&) { return 0; } + size_t operator()(B const&) noexcept(false) { return 0; } }; } |