]> git.ipfire.org Git - thirdparty/gcc.git/commit
[testsuite] tolerate missing std::stold
authorAlexandre Oliva <oliva@adacore.com>
Wed, 21 May 2025 09:20:11 +0000 (06:20 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Wed, 21 May 2025 09:20:11 +0000 (06:20 -0300)
commit207534061fb026585d65af3cf863dc434ec36d7c
tree5861f883a608455f1da0b64ae8a8c25aeaedd59a
parentf3c5e0a2091ddd5cae4d7381a847aac5f546f04c
[testsuite] tolerate missing std::stold

basic_string.h doesn't define the non-w string version of std::stold
when certain conditions aren't met, and then a couple of tests fail to
compile.

Guard the portions of the tests that depend on std::stold with the
conditions for it to be defined.

for  libstdc++-v3/ChangeLog

* testsuite/21_strings/basic_string/numeric_conversions/char/stold.cc:
Guard non-wide stold calls with conditions for it to be
defined.
* testsuite/27_io/basic_ostream/inserters_arithmetic/char/hexfloat.cc:
Likewise.
libstdc++-v3/testsuite/21_strings/basic_string/numeric_conversions/char/stold.cc
libstdc++-v3/testsuite/27_io/basic_ostream/inserters_arithmetic/char/hexfloat.cc