diff options
Diffstat (limited to 'libc/test/src/math/sqrt_test.cpp')
-rw-r--r-- | libc/test/src/math/sqrt_test.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libc/test/src/math/sqrt_test.cpp b/libc/test/src/math/sqrt_test.cpp index 7ff4978ec9e3..1fda63e16908 100644 --- a/libc/test/src/math/sqrt_test.cpp +++ b/libc/test/src/math/sqrt_test.cpp @@ -20,9 +20,7 @@ namespace mpfr = __llvm_libc::testing::mpfr; constexpr UIntType HiddenBit = UIntType(1) << __llvm_libc::fputil::MantissaWidth<double>::value; -double nan = FPBits::buildNaN(1); -double inf = FPBits::inf(); -double negInf = FPBits::negInf(); +DECLARE_SPECIAL_CONSTANTS(double) TEST(SqrtTest, SpecialValues) { ASSERT_FP_EQ(nan, __llvm_libc::sqrt(nan)); |