summaryrefslogtreecommitdiff
path: root/libc/test/src/math/smoke/sincos_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libc/test/src/math/smoke/sincos_test.cpp')
-rw-r--r--libc/test/src/math/smoke/sincos_test.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/libc/test/src/math/smoke/sincos_test.cpp b/libc/test/src/math/smoke/sincos_test.cpp
index 8bc584de4e8c..a98b9319b562 100644
--- a/libc/test/src/math/smoke/sincos_test.cpp
+++ b/libc/test/src/math/smoke/sincos_test.cpp
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include "hdr/errno_macros.h"
#include "src/math/sincos.h"
#include "test/UnitTest/FPMatcher.h"
#include "test/UnitTest/Test.h"
@@ -35,10 +36,12 @@ TEST_F(LlvmLibcSincosTest, SpecialNumbers) {
LIBC_NAMESPACE::sincos(inf, &sin_x, &cos_x);
EXPECT_FP_EQ_ALL_ROUNDING(aNaN, cos_x);
EXPECT_FP_EQ_ALL_ROUNDING(aNaN, sin_x);
+ EXPECT_MATH_ERRNO(EDOM);
LIBC_NAMESPACE::sincos(neg_inf, &sin_x, &cos_x);
EXPECT_FP_EQ_ALL_ROUNDING(aNaN, cos_x);
EXPECT_FP_EQ_ALL_ROUNDING(aNaN, sin_x);
+ EXPECT_MATH_ERRNO(EDOM);
LIBC_NAMESPACE::sincos(0x1.0p-28, &sin_x, &cos_x);
EXPECT_FP_EQ(1.0, cos_x);