Fix a couple of -Wabsolute-value warnings in the libc++ tests
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@203126 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -82,9 +82,9 @@ void test_exp()
|
||||
void test_fabs()
|
||||
{
|
||||
static_assert((std::is_same<decltype(fabs((double)0)), double>::value), "");
|
||||
static_assert((std::is_same<decltype(fabsf(0)), float>::value), "");
|
||||
static_assert((std::is_same<decltype(fabsl(0)), long double>::value), "");
|
||||
assert(fabs(-1) == 1);
|
||||
static_assert((std::is_same<decltype(fabsf(0.f)), float>::value), "");
|
||||
static_assert((std::is_same<decltype(fabsl(0.L)), long double>::value), "");
|
||||
assert(fabs(-1.f) == 1);
|
||||
}
|
||||
|
||||
void test_floor()
|
||||
|
||||
Reference in New Issue
Block a user