diff --git a/libc/test/src/__support/FPUtil/fpbits_test.cpp b/libc/test/src/__support/FPUtil/fpbits_test.cpp --- a/libc/test/src/__support/FPUtil/fpbits_test.cpp +++ b/libc/test/src/__support/FPUtil/fpbits_test.cpp @@ -197,9 +197,9 @@ } #else TEST(LlvmLibcFPBitsTest, LongDoubleType) { - if constexpr (sizeof(long double) == sizeof(double)) - return; // The tests for the "double" type cover for this case. - +#if defined(LONG_DOUBLE_IS_DOUBLE) + return; // The tests for the "double" type cover for this case. +#else EXPECT_STREQ(FPBits::inf().str().c_str(), "(+Infinity)"); EXPECT_STREQ(FPBits::neg_inf().str().c_str(), "(-Infinity)"); EXPECT_STREQ( @@ -262,5 +262,6 @@ EXPECT_STREQ(negnum.str().c_str(), "0xBFFF2000000000000000000000000000 = " "(S: 1, E: 0x3FFF, M: 0x00002000000000000000000000000000)"); +#endif } #endif