summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/utilities/optional
diff options
context:
space:
mode:
authorBilly Robert O'Neal III <bion@microsoft.com>2017-04-06 23:50:33 +0000
committerBilly Robert O'Neal III <bion@microsoft.com>2017-04-06 23:50:33 +0000
commit8ac1fa16b2c8d1ece353a1c5e84604c7de31daaf (patch)
tree53e0d38a6f29fb17833cb719d4c162b4bea507bd /libcxx/test/std/utilities/optional
parenteaeeaaf375c8824f641c0f02ed90582be73fc6ac (diff)
downloadbcm5719-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
Diffstat (limited to 'libcxx/test/std/utilities/optional')
-rw-r--r--libcxx/test/std/utilities/optional/optional.hash/hash.pass.cpp2
1 files changed, 1 insertions, 1 deletions
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; }
};
}
OpenPOWER on IntegriCloud