From: Jonathan Wakely Date: Mon, 26 Nov 2018 11:12:11 +0000 (+0000) Subject: Only use __float128 in test if available X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f4d3e3cca5e7483dce84a8ba38203de5246a2b7b;p=gcc.git Only use __float128 in test if available * testsuite/26_numerics/complex/requirements/more_constexpr.cc: Fix failure on targets without __float128. From-SVN: r266450 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 24351cb7ad5..11505c0f31f 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2018-11-26 Jonathan Wakely + + * 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. diff --git a/libstdc++-v3/testsuite/26_numerics/complex/requirements/more_constexpr.cc b/libstdc++-v3/testsuite/26_numerics/complex/requirements/more_constexpr.cc index 902e7ce8e87..5e515a692db 100644 --- a/libstdc++-v3/testsuite/26_numerics/complex/requirements/more_constexpr.cc +++ b/libstdc++-v3/testsuite/26_numerics/complex/requirements/more_constexpr.cc @@ -164,8 +164,10 @@ int main() __gnu_test::test_operator_members(); __gnu_test::test_operator_members(); +#if defined(_GLIBCXX_USE_FLOAT128) // Test primary template. __gnu_test::test_operator_members<__float128, __float128>(); +#endif return 0; }