From: Joe Loser Date: Sun, 10 Oct 2021 18:46:35 +0000 (-0400) Subject: [libc++][test] Replace a TEST_NOEXCEPT_FALSE with noexcept(false). NFC. X-Git-Tag: upstream/15.0.7~29048 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=65d62e52a78940b2c332b32429fffe557860e8ed;p=platform%2Fupstream%2Fllvm.git [libc++][test] Replace a TEST_NOEXCEPT_FALSE with noexcept(false). NFC. Replace `TEST_NOEXCEPT_FALSE` directly with `noexcept(false)` in optional hash test which is only run in C++17 or later. `TEST_NOEXCEPT_FALSE` is only useful in C++03 context where `noexcept` isn't supported by clang. `TEST_NOEXCEPT_FALSE` now only has one remaining use in `hash_unique_ptr.pass.cpp`. --- 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 49e6bc4..bb8a319 100644 --- a/libcxx/test/std/utilities/optional/optional.hash/hash.pass.cpp +++ b/libcxx/test/std/utilities/optional/optional.hash/hash.pass.cpp @@ -27,7 +27,7 @@ namespace std { template <> struct hash { - size_t operator()(B const&) TEST_NOEXCEPT_FALSE { return 0; } + size_t operator()(B const&) noexcept(false) { return 0; } }; }