diff options
author | Mark de Wever <koraq@xs4all.nl> | 2024-02-09 17:30:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-09 17:30:30 +0100 |
commit | 7291761669dd63624ccaab30887aca7e9c7d3273 (patch) | |
tree | 7a5a75570aeb9fbc7a5c7f8cab6e54ab0c43755d /libcxx | |
parent | a5cc1dc82d61c156f75edc72eccacdb6776bf3f1 (diff) | |
download | llvm-7291761669dd63624ccaab30887aca7e9c7d3273.zip llvm-7291761669dd63624ccaab30887aca7e9c7d3273.tar.gz llvm-7291761669dd63624ccaab30887aca7e9c7d3273.tar.bz2 |
[libc++] Fixes charconv operator bool tests. (#80598)
This was spotted by @philnik.
Diffstat (limited to 'libcxx')
-rw-r--r-- | libcxx/test/std/utilities/charconv/charconv.syn/from_chars_result.operator_bool.pass.cpp | 4 | ||||
-rw-r--r-- | libcxx/test/std/utilities/charconv/charconv.syn/to_chars_result.operator_bool.pass.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/libcxx/test/std/utilities/charconv/charconv.syn/from_chars_result.operator_bool.pass.cpp b/libcxx/test/std/utilities/charconv/charconv.syn/from_chars_result.operator_bool.pass.cpp index b628a2c..a6aa590 100644 --- a/libcxx/test/std/utilities/charconv/charconv.syn/from_chars_result.operator_bool.pass.cpp +++ b/libcxx/test/std/utilities/charconv/charconv.syn/from_chars_result.operator_bool.pass.cpp @@ -28,13 +28,13 @@ constexpr bool test() { { std::from_chars_result value{nullptr, std::errc{}}; assert(bool(value) == true); - static_assert(noexcept(bool(true)) == true); + static_assert(noexcept(bool(value)) == true); } // False { std::from_chars_result value{nullptr, std::errc::value_too_large}; assert(bool(value) == false); - static_assert(noexcept(bool(true)) == true); + static_assert(noexcept(bool(value)) == true); } return true; diff --git a/libcxx/test/std/utilities/charconv/charconv.syn/to_chars_result.operator_bool.pass.cpp b/libcxx/test/std/utilities/charconv/charconv.syn/to_chars_result.operator_bool.pass.cpp index ef9364d..621eb8a 100644 --- a/libcxx/test/std/utilities/charconv/charconv.syn/to_chars_result.operator_bool.pass.cpp +++ b/libcxx/test/std/utilities/charconv/charconv.syn/to_chars_result.operator_bool.pass.cpp @@ -28,13 +28,13 @@ constexpr bool test() { { std::to_chars_result value{nullptr, std::errc{}}; assert(bool(value) == true); - static_assert(noexcept(bool(true)) == true); + static_assert(noexcept(bool(value)) == true); } // False { std::to_chars_result value{nullptr, std::errc::value_too_large}; assert(bool(value) == false); - static_assert(noexcept(bool(true)) == true); + static_assert(noexcept(bool(value)) == true); } return true; |