From 096099d659a25a3651fa852c39cff0d2df44e7f0 Mon Sep 17 00:00:00 2001 From: John Wellbelove Date: Tue, 14 May 2024 00:06:01 +0100 Subject: [PATCH] Enabled constexpr test for C++14 and above only --- test/test_math_functions.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/test_math_functions.cpp b/test/test_math_functions.cpp index 05e488fb..7e126478 100644 --- a/test/test_math_functions.cpp +++ b/test/test_math_functions.cpp @@ -480,6 +480,7 @@ namespace CHECK_EQUAL(5, etl::gcd(-10, -5, -15)); } +#if ETL_USING_CPP14 //************************************************************************* TEST(test_constexpr_gdc) { @@ -495,6 +496,7 @@ namespace CHECK_EQUAL(4, gcd4); CHECK_EQUAL(5, gcd5); } +#endif //************************************************************************* TEST(test_lcm_for_positive_integers) @@ -516,6 +518,7 @@ namespace CHECK_EQUAL(5, etl::lcm(-5, -5, -5)); } +#if ETL_USING_CPP14 //************************************************************************* TEST(test_constexpr_lcm) { @@ -531,5 +534,6 @@ namespace CHECK_EQUAL(0, lcm4); CHECK_EQUAL(5, lcm5); } +#endif }; }