]> gcc.gnu.org Git - gcc.git/commit
libstdc++: Combine two std::from_chars tests into one
authorJonathan Wakely <jwakely@redhat.com>
Tue, 2 Apr 2024 20:22:01 +0000 (21:22 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Mon, 8 Apr 2024 16:44:18 +0000 (17:44 +0100)
commit87bc20676ce606b0f75f12a35b24206df05a9f0a
tree1351bb98834bfa940b426c820458216dc9b2b809
parent2c1c2485a4b1aca746ac693041e51ea6da5c64ca
libstdc++: Combine two std::from_chars tests into one

We don't need separate tests for the C++17 and C++20 cases, we can just
have one test that uses __cpp_char8_t to adjust whether it tests char8_t
or not. This means the C++20 one doesn't fail if -fno-char8_t is used.

libstdc++-v3/ChangeLog:

* testsuite/20_util/from_chars/1_neg.cc: Add char8_t cases,
using a struct of that name if -fno-char8_t is active.
* testsuite/20_util/from_chars/1_c++20_neg.cc: Removed.
libstdc++-v3/testsuite/20_util/from_chars/1_c++20_neg.cc [deleted file]
libstdc++-v3/testsuite/20_util/from_chars/1_neg.cc
This page took 0.055302 seconds and 5 git commands to generate.