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.
This commit is contained in:
Alexandre Oliva 2022-06-21 23:11:00 -03:00 committed by Alexandre Oliva
parent 345d69a7de
commit 540ae3601e
1 changed files with 1 additions and 0 deletions

View File

@ -36,6 +36,7 @@
// { dg-require-effective-target ieee_floats }
// { dg-require-effective-target size32plus }
// { dg-require-cmath "" }
#include <charconv>