Only use __float128 in test if available

* testsuite/26_numerics/complex/requirements/more_constexpr.cc: Fix
	failure on targets without __float128.

From-SVN: r266450
This commit is contained in:
Jonathan Wakely 2018-11-26 11:12:11 +00:00 committed by Jonathan Wakely
parent 2d30555621
commit f4d3e3cca5
2 changed files with 7 additions and 0 deletions

View 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.

View 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;
}