Changed result of etl::is_constant_evaluated() in test_is_constant_evaluated from const to constexpr.

This commit is contained in:
John Wellbelove 2025-10-11 11:22:16 +01:00
parent 85678586c4
commit 3f7b18e3c2

View File

@ -1477,7 +1477,7 @@ namespace
//*************************************************************************
TEST(test_is_constant_evaluated)
{
const bool c0 = etl::is_constant_evaluated();
constexpr bool c0 = etl::is_constant_evaluated();
#if !ETL_USING_CPP23 && defined(ETL_COMPILER_MICROSOFT)
// Not supported on MSVC via __has_builtin, see determine_builtin_support.h
CHECK_FALSE(c0);