]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Fix typos in tests using macros for std::float128_t support
authorJonathan Wakely <jwakely@redhat.com>
Thu, 24 Oct 2024 10:38:39 +0000 (11:38 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 24 Oct 2024 17:18:40 +0000 (18:18 +0100)
These tests check `_GLIBCXX_DOUBLE_IS_IEEE_BINARY128` but that's never
defined, it should be "LDOUBLE" not "DOUBLE".

libstdc++-v3/ChangeLog:

* testsuite/26_numerics/complex/ext_c++23.cc: Fix typo in macro.
* testsuite/26_numerics/headers/cmath/constexpr_std_c++23.cc:
Likewise.
* 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/complex/ext_c++23.cc
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 0fc3d6f1a666faca6d2d2a70d250207359065472..5f4ff06448e0508cbe0678e28f3126ac602871f7 100644 (file)
@@ -70,7 +70,7 @@ main()
   }
 #endif
 #if defined(__STDCPP_FLOAT128_T__) \
-    && (defined(_GLIBCXX_DOUBLE_IS_IEEE_BINARY128) \
+    && (defined(_GLIBCXX_LDOUBLE_IS_IEEE_BINARY128) \
        || defined(_GLIBCXX_HAVE_FLOAT128_MATH))
   {
     std::float128_t p[2] = {};
index 3c2377fd6987bef8aa19e7b79e36899fa79c9f5e..983027ff654677877b417ccc524f844aeeed7f20 100644 (file)
@@ -119,7 +119,7 @@ main()
   test_functions<std::float64_t>();
 #endif
 #if defined(__STDCPP_FLOAT128_T__) \
-    && (defined(_GLIBCXX_DOUBLE_IS_IEEE_BINARY128) \
+    && (defined(_GLIBCXX_LDOUBLE_IS_IEEE_BINARY128) \
        || defined(_GLIBCXX_HAVE_FLOAT128_MATH))
   test_functions<std::float128_t>();
 #endif
index ea68ac5da75519120e9ab23e79e7d03172136bc5..bf07493ecd47682b53d6a58207dcfb71b329e19d 100644 (file)
@@ -131,7 +131,7 @@ main()
   }
 #endif
 #if defined(__STDCPP_FLOAT128_T__) \
-    && (defined(_GLIBCXX_DOUBLE_IS_IEEE_BINARY128) \
+    && (defined(_GLIBCXX_LDOUBLE_IS_IEEE_BINARY128) \
        || defined(_GLIBCXX_HAVE_FLOAT128_MATH))
   {
     std::float128_t p[128] = {};
index 91767d22cc3f2b404978f3ed01994007e682be4d..2d0f8017f4aa2d2e7c5f33d2f72814ebd259da02 100644 (file)
@@ -117,7 +117,7 @@ main ()
   test <std::float64_t>();
 #endif
 #if defined(__STDCPP_FLOAT128_T__) \
-    && (defined(_GLIBCXX_DOUBLE_IS_IEEE_BINARY128) \
+    && (defined(_GLIBCXX_LDOUBLE_IS_IEEE_BINARY128) \
        || defined(_GLIBCXX_HAVE_FLOAT128_MATH))
   test <std::float128_t>();
 #endif