From 385b22592f1943d4c1a07d8289fad303b77e4a78 Mon Sep 17 00:00:00 2001 From: HedgehogInTheCPP Date: Wed, 23 Sep 2026 03:35:55 +0300 Subject: [PATCH] compilation fix. --- tests/exhaustive16_midpoint.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/exhaustive16_midpoint.cpp b/tests/exhaustive16_midpoint.cpp index 816aeeb..9c8746d 100644 --- a/tests/exhaustive16_midpoint.cpp +++ b/tests/exhaustive16_midpoint.cpp @@ -13,6 +13,8 @@ #include #include +#ifdef __STDCPP_FLOAT16_T__ + namespace { // Decimal digit strings, most significant digit first, no leading zeros. @@ -149,7 +151,10 @@ template Failure sweep() { } // namespace +#endif + int main() { +#ifdef __STDCPP_FLOAT16_T__ Failure f16 = sweep(); std::printf("float16: %ld strings, %ld failures\n", f16.checked, f16.count); Failure bf16 = sweep(); @@ -158,6 +163,7 @@ int main() { if (f16.count != 0 || bf16.count != 0) { return EXIT_FAILURE; } +#endif std::printf("all ok\n"); return EXIT_SUCCESS; }