Complex: Get arithmetic tests passing.

This commit is contained in:
jzmaddock
2018-03-04 18:31:17 +00:00
parent a5ac1fbd4a
commit 580905c528
2 changed files with 4 additions and 0 deletions

View File

@@ -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 : : <build>no ] ;
run test_arithmetic_float_128.cpp no_eh_support : : : [ check-target-builds ../config//has_intel_quad : <cxxflags>-Qoption,cpp,--extended_float_type : <build>no ] [ check-target-builds ../config//has_float128 : <source>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 :

View File

@@ -1702,6 +1702,7 @@ inline Real negate_value(const Real& val, const boost::mpl::false_&)
template <class Real, class Num>
void test_mixed_numeric_limits(const boost::mpl::true_&)
{
Real d;
if (std::numeric_limits<Real>::has_infinity && std::numeric_limits<Num>::has_infinity)
{
d = static_cast<Real>(std::numeric_limits<Num>::infinity());