summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/utilities/memory
diff options
context:
space:
mode:
authorMarshall Clow <mclow.lists@gmail.com>2017-03-23 02:40:28 +0000
committerMarshall Clow <mclow.lists@gmail.com>2017-03-23 02:40:28 +0000
commit7c803385a75cf59c1730e8bdcf295c5a47ce36f2 (patch)
treea0da2795868760116fffd74d409655c50fe9ce88 /libcxx/test/std/utilities/memory
parent6974dd6412cd9cbb0849cc77b7381ad3b2a97fff (diff)
downloadbcm5719-llvm-7c803385a75cf59c1730e8bdcf295c5a47ce36f2.tar.gz
bcm5719-llvm-7c803385a75cf59c1730e8bdcf295c5a47ce36f2.zip
Implement P0599: 'noexcept for hash functions'. Fix a couple of hash functions (optional<T> and unique_ptr<T>) which were mistakenly marked as 'noexcept'. Reviewed as https://reviews.llvm.org/D31234
llvm-svn: 298573
Diffstat (limited to 'libcxx/test/std/utilities/memory')
-rw-r--r--libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.hash/hash_unique_ptr.pass.cpp1
1 files changed, 1 insertions, 0 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 879ea405c75..b539e638036 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
@@ -67,6 +67,7 @@ int main()
int* ptr = new int;
std::unique_ptr<int> p(ptr);
std::hash<std::unique_ptr<int> > f;
+ ASSERT_NOT_NOEXCEPT(f(p));
std::size_t h = f(p);
assert(h == std::hash<int*>()(ptr));
}
OpenPOWER on IntegriCloud