Remove redundant and thus uncovered lines

This commit is contained in:
ckormanyos
2025-07-14 16:35:27 +02:00
parent 590d343081
commit daaea2952d
2 changed files with 12 additions and 3 deletions

View File

@@ -518,9 +518,6 @@ inline void eval_pow(T& result, const T& x, const T& a)
case FP_ZERO:
switch (fpc_a)
{
case FP_ZERO:
result = si_type(1);
break;
case FP_NAN:
result = a;
break;

View File

@@ -159,6 +159,18 @@ void test_issue722()
BOOST_CHECK((boost::multiprecision::isnan)(pow_neg_inf_to_the_nan));
}
for (int index = 0; index < 8; ++index)
{
static_cast<void>(index);
const T val_x_zero { ::my_zero<T>() * dist(gen) };
const T val_a_zero { ::my_zero<T>() * dist(gen) };
const T pow_zero_to_the_zero = pow(val_x_zero, val_a_zero);
BOOST_CHECK(pow_zero_to_the_zero == 1);
}
}
}