Only use __float128 in test if available
authorJonathan Wakely <jwakely@redhat.com>
Mon, 26 Nov 2018 11:12:11 +0000 (11:12 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Mon, 26 Nov 2018 11:12:11 +0000 (11:12 +0000)
* testsuite/26_numerics/complex/requirements/more_constexpr.cc: Fix
failure on targets without __float128.

From-SVN: r266450

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/26_numerics/complex/requirements/more_constexpr.cc

index 24351cb..11505c0 100644 (file)
@@ -1,3 +1,8 @@
+2018-11-26  Jonathan Wakely  <jwakely@redhat.com>
+
+       * testsuite/26_numerics/complex/requirements/more_constexpr.cc: Fix
+       failure on targets without __float128.
+
 2018-11-23  Edward Smith-Rowland  <3dw4rd@verizon.net>
 
        Implement P0415 More constexpr for std::complex.
index 902e7ce..5e515a6 100644 (file)
@@ -164,8 +164,10 @@ int main()
   __gnu_test::test_operator_members<long double, double>();
   __gnu_test::test_operator_members<long double, long double>();
 
+#if defined(_GLIBCXX_USE_FLOAT128)
   // Test primary template.
   __gnu_test::test_operator_members<__float128, __float128>();
+#endif
 
   return 0;
 }