]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[libstdc++] [testsuite] require cmath for c++23 cmath tests
authorAlexandre Oliva <oliva@adacore.com>
Wed, 12 Jun 2024 22:48:06 +0000 (19:48 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Wed, 12 Jun 2024 22:48:06 +0000 (19:48 -0300)
Some c++23 tests fail on targets that don't satisfy dg-require-cmath,
because referenced math functions don't get declared in std.  Add the
missing requirement.

for  libstdc++-v3/ChangeLog

* testsuite/26_numerics/headers/cmath/constexpr_std_c++23.cc:
Require cmath.
* testsuite/26_numerics/headers/cmath/functions_std_c++23.cc:
Likewise.
* testsuite/26_numerics/headers/cmath/nextafter_c++23.cc:
Likewise.

libstdc++-v3/testsuite/26_numerics/headers/cmath/constexpr_std_c++23.cc
libstdc++-v3/testsuite/26_numerics/headers/cmath/functions_std_c++23.cc
libstdc++-v3/testsuite/26_numerics/headers/cmath/nextafter_c++23.cc

index 0e3d112fe2e80469103b5ade36372750a59db394..3c2377fd6987bef8aa19e7b79e36899fa79c9f5e 100644 (file)
@@ -16,6 +16,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do link { target c++23 } }
+// { dg-require-cmath "" }
 
 #include <stdfloat>
 #include <cmath>
index 000cebf364aaa095ca6e09bb9c335643b64eb812..ea68ac5da75519120e9ab23e79e7d03172136bc5 100644 (file)
@@ -16,6 +16,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do link { target c++23 } }
+// { dg-require-cmath "" }
 
 #include <stdfloat>
 #include <cmath>
index 7d7e10bd8aea33b3ae4d11c1a6e4bfc63739c67b..91767d22cc3f2b404978f3ed01994007e682be4d 100644 (file)
@@ -16,6 +16,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do run { target c++23 } }
+// { dg-require-cmath "" }
 
 #include <stdfloat>
 #include <cmath>