aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2018-11-26 11:12:11 +0000
committerJonathan Wakely <redi@gcc.gnu.org>2018-11-26 11:12:11 +0000
commitf4d3e3cca5e7483dce84a8ba38203de5246a2b7b (patch)
treefbad8c9183a16da1ab65e592fd0dd55c78f19eeb
parent2d30555621ecb8e861e5377c42b33d1413248e6c (diff)
downloadgcc-f4d3e3cca5e7483dce84a8ba38203de5246a2b7b.zip
gcc-f4d3e3cca5e7483dce84a8ba38203de5246a2b7b.tar.gz
gcc-f4d3e3cca5e7483dce84a8ba38203de5246a2b7b.tar.bz2
Only use __float128 in test if available
* testsuite/26_numerics/complex/requirements/more_constexpr.cc: Fix failure on targets without __float128. From-SVN: r266450
-rw-r--r--libstdc++-v3/ChangeLog5
-rw-r--r--libstdc++-v3/testsuite/26_numerics/complex/requirements/more_constexpr.cc2
2 files changed, 7 insertions, 0 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 24351cb..11505c0 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -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.
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 902e7ce..5e515a6 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<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;
}