From 580905c5284fa75fbb1291d95bb198fd46433ade Mon Sep 17 00:00:00 2001 From: jzmaddock Date: Sun, 4 Mar 2018 18:31:17 +0000 Subject: [PATCH] Complex: Get arithmetic tests passing. --- test/Jamfile.v2 | 3 +++ test/test_arithmetic.hpp | 1 + 2 files changed, 4 insertions(+) diff --git a/test/Jamfile.v2 b/test/Jamfile.v2 index b4856e2a..3aff1a81 100644 --- a/test/Jamfile.v2 +++ b/test/Jamfile.v2 @@ -126,6 +126,8 @@ run test_arithmetic_mpfi_50.cpp mpfi mpfr gmp no_eh_support : : : [ check-target run test_arithmetic_float_128.cpp quadmath no_eh_support : : : [ check-target-builds ../config//has_float128 : : no ] ; run test_arithmetic_float_128.cpp no_eh_support : : : [ check-target-builds ../config//has_intel_quad : -Qoption,cpp,--extended_float_type : no ] [ check-target-builds ../config//has_float128 : quadmath ] : test_arithmetic_intel_quad ; +run test_arithmetic_mpc.cpp ; + run test_numeric_limits.cpp no_eh_support : # command line : # input files @@ -1141,6 +1143,7 @@ alias arithmetic_tests : test_arithmetic_mpfi_50 test_arithmetic_float_128 test_arithmetic_float_128 + test_arithmetic_mpc.cpp ; alias cpp_int_tests : diff --git a/test/test_arithmetic.hpp b/test/test_arithmetic.hpp index f4832b5e..6a170473 100644 --- a/test/test_arithmetic.hpp +++ b/test/test_arithmetic.hpp @@ -1702,6 +1702,7 @@ inline Real negate_value(const Real& val, const boost::mpl::false_&) template void test_mixed_numeric_limits(const boost::mpl::true_&) { + Real d; if (std::numeric_limits::has_infinity && std::numeric_limits::has_infinity) { d = static_cast(std::numeric_limits::infinity());