Skip to content

Commit ab0a048

Browse files
Fixed failing noexcept tests on C++03.
1 parent d31a906 commit ab0a048

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

libcxx/test/std/numerics/c.math/cmath.pass.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -606,10 +606,10 @@ void test_fpclassify()
606606
static_assert((std::is_same<decltype(fpclassify(Value<float>())), int>::value), "");
607607
static_assert((std::is_same<decltype(fpclassify(Value<double>())), int>::value), "");
608608
static_assert((std::is_same<decltype(fpclassify(Value<long double>())), int>::value), "");
609-
static_assert(noexcept(std::fpclassify((float)0)), "");
610-
static_assert(noexcept(std::fpclassify((double)0)), "");
611-
static_assert(noexcept(std::fpclassify((long double)0)), "");
612-
static_assert(noexcept(std::fpclassify(0)), "");
609+
ASSERT_NOEXCEPT(std::fpclassify((float)0));
610+
ASSERT_NOEXCEPT(std::fpclassify((double)0));
611+
ASSERT_NOEXCEPT(std::fpclassify((long double)0));
612+
ASSERT_NOEXCEPT(std::fpclassify(0));
613613
assert(std::fpclassify(-1.0) == FP_NORMAL);
614614
assert(std::fpclassify(0) == FP_ZERO);
615615
assert(std::fpclassify(1) == FP_NORMAL);

0 commit comments

Comments
 (0)