Skip to content

Commit

Permalink
Enabled constexpr test for C++14 and above only
Browse files Browse the repository at this point in the history
  • Loading branch information
John Wellbelove committed May 13, 2024
1 parent 896bc51 commit 096099d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/test_math_functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,7 @@ namespace
CHECK_EQUAL(5, etl::gcd(-10, -5, -15));
}

#if ETL_USING_CPP14
//*************************************************************************
TEST(test_constexpr_gdc)
{
Expand All @@ -495,6 +496,7 @@ namespace
CHECK_EQUAL(4, gcd4);
CHECK_EQUAL(5, gcd5);
}
#endif

//*************************************************************************
TEST(test_lcm_for_positive_integers)
Expand All @@ -516,6 +518,7 @@ namespace
CHECK_EQUAL(5, etl::lcm(-5, -5, -5));
}

#if ETL_USING_CPP14
//*************************************************************************
TEST(test_constexpr_lcm)
{
Expand All @@ -531,5 +534,6 @@ namespace
CHECK_EQUAL(0, lcm4);
CHECK_EQUAL(5, lcm5);
}
#endif
};
}

0 comments on commit 096099d

Please sign in to comment.