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 24351cb7ad514bc21cc35a676a4d7ee745e5d0e7..11505c0f31f56496b7ba7ff3b0026a68fda0995b 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 902e7ce8e87702d9fe52d9db40d826031b49e58e..5e515a692db03cfcc19b59520cab4fdf9ac3c3d9 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;
 }