aboutsummaryrefslogtreecommitdiff
path: root/libc/test/src/math/trunc_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libc/test/src/math/trunc_test.cpp')
-rw-r--r--libc/test/src/math/trunc_test.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/libc/test/src/math/trunc_test.cpp b/libc/test/src/math/trunc_test.cpp
index 806f02cb2a22..0a322facab39 100644
--- a/libc/test/src/math/trunc_test.cpp
+++ b/libc/test/src/math/trunc_test.cpp
@@ -17,11 +17,7 @@ using FPBits = __llvm_libc::fputil::FPBits<double>;
namespace mpfr = __llvm_libc::testing::mpfr;
-static const double zero = FPBits::zero();
-static const double negZero = FPBits::negZero();
-static const double nan = FPBits::buildNaN(1);
-static const double inf = FPBits::inf();
-static const double negInf = FPBits::negInf();
+DECLARE_SPECIAL_CONSTANTS(double)
TEST(TruncTest, SpecialNumbers) {
EXPECT_FP_EQ(zero, __llvm_libc::trunc(zero));