[libc++][test] Replace a TEST_NOEXCEPT_FALSE with noexcept(false). NFC.
authorJoe Loser <joeloser93@gmail.com>
Sun, 10 Oct 2021 18:46:35 +0000 (14:46 -0400)
committerJoe Loser <joeloser93@gmail.com>
Sun, 10 Oct 2021 18:46:35 +0000 (14:46 -0400)
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`.

libcxx/test/std/utilities/optional/optional.hash/hash.pass.cpp

index 49e6bc4..bb8a319 100644 (file)
@@ -27,7 +27,7 @@ namespace std {
 
 template <>
 struct hash<B> {
-  size_t operator()(B const&) TEST_NOEXCEPT_FALSE { return 0; }
+  size_t operator()(B const&) noexcept(false) { return 0; }
 };
 
 }