]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Use standard <float.h> macros in test
authorJonathan Wakely <jwakely@redhat.com>
Wed, 31 Jul 2019 19:56:19 +0000 (20:56 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 31 Jul 2019 19:56:19 +0000 (20:56 +0100)
The <float.h> changes to define these for C++ have been backported, so
the test can use them now.

* testsuite/26_numerics/midpoint/floating.cc: Use standard macros
instead of GCC-specific ones.

From-SVN: r273950

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/26_numerics/midpoint/floating.cc

index 04aefd3219a096a7deb17bf8dd8d6e9b6490b3b2..c93869d94bd4567617cc7879876902894072228b 100644 (file)
@@ -1,5 +1,8 @@
 2019-07-31  Jonathan Wakely  <jwakely@redhat.com>
 
+       * testsuite/26_numerics/midpoint/floating.cc: Use standard macros
+       instead of GCC-specific ones.
+
        Backport from mainline
        2019-06-24  Jonathan Wakely  <jwakely@redhat.com>
 
index f09f586f7b8ea377d4826753af9bcfb981b465cf..32a966e2c63f9c296ddbf47f58957369d93b778d 100644 (file)
@@ -61,13 +61,13 @@ test03()
 namespace test04
 {
   // https://gcc.gnu.org/ml/libstdc++/2019-03/msg00065.html
-  constexpr double d = DBL_MIN + __DBL_DENORM_MIN__;
+  constexpr double d = DBL_MIN + DBL_TRUE_MIN;
   static_assert( std::midpoint(d, d) == d );
 
-  constexpr float f = FLT_MIN + __FLT_DENORM_MIN__;
+  constexpr float f = FLT_MIN + FLT_TRUE_MIN;
   static_assert( std::midpoint(f, f) == f );
 
-  constexpr long double l = LDBL_MIN + __LDBL_DENORM_MIN__;
+  constexpr long double l = LDBL_MIN + LDBL_TRUE_MIN;
   static_assert( std::midpoint(l, l) == l );
 }