From: Alexandre Oliva Date: Wed, 22 Jun 2022 02:11:00 +0000 (-0300) Subject: libstdc++: testsuite: require cmath for nexttowardl X-Git-Tag: basepoints/gcc-14~6008 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=540ae3601e1d2403ae5ba27db36ca75cb1e8d055;p=thirdparty%2Fgcc.git libstdc++: testsuite: require cmath for nexttowardl nexttowardl is only expected to be available with C99 math, but 20_util/to_chars/long_double.cc uses it unconditionally. State the cmath requirement in the test. for libstdc++-v3/ChangeLog * testsuite/20_util/to_chars/long_double.cc: Require cmath. --- diff --git a/libstdc++-v3/testsuite/20_util/to_chars/long_double.cc b/libstdc++-v3/testsuite/20_util/to_chars/long_double.cc index 94b5b5967d3..0b1c2c2936f 100644 --- a/libstdc++-v3/testsuite/20_util/to_chars/long_double.cc +++ b/libstdc++-v3/testsuite/20_util/to_chars/long_double.cc @@ -36,6 +36,7 @@ // { dg-require-effective-target ieee_floats } // { dg-require-effective-target size32plus } +// { dg-require-cmath "" } #include