summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/const-math.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/const-math.cpp b/test/const-math.cpp
index afb42bf3..2b8cbc3c 100644
--- a/test/const-math.cpp
+++ b/test/const-math.cpp
@@ -6,6 +6,8 @@
#include <Magnum/Math/Vector3.h>
#include <Magnum/Math/Vector4.h>
+#if defined CORRADE_CONSTEVAL || defined MAGNUM_CONSTEXPR14
+
#ifdef __GNUG__
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wfloat-equal"
@@ -70,3 +72,6 @@ bool app::test_const_math()
#ifdef __GNUG__
# pragma GCC diagnostic pop
#endif
+#else
+namespace floormat { bool app::test_const_math() { return true; } }
+#endif