Skip to content

Commit 66c661f

Browse files
committed
Remove preprocessor macros from tests
1 parent 4cd8d4f commit 66c661f

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,7 @@ int main(int, char**) {
7474
// Make sure we can call `std::isinf` with convertible types
7575
{
7676
assert(!std::isinf(ConvertibleTo<float>()));
77-
// When libc++ is layered on top of Bionic's libc, `math.h` exposes a
78-
// function prototype for `isinf(double)` with return type `int`. libc++
79-
// can only work around it via `_LIBCPP_PREFERRED_OVERLOAD`, which is only
80-
// available in modern versions of Clang, and not elsewhere.
81-
#if defined(TEST_COMPILER_CLANG) || !defined(__BIONIC__)
8277
assert(!std::isinf(ConvertibleTo<double>()));
83-
#endif
8478
assert(!std::isinf(ConvertibleTo<long double>()));
8579
}
8680

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,7 @@ int main(int, char**) {
7474
// Make sure we can call `std::isnan` with convertible types
7575
{
7676
assert(!std::isnan(ConvertibleTo<float>()));
77-
// When libc++ is layered on top of Bionic's libc, `math.h` exposes a
78-
// function prototype for `isnan(double)` with return type `int`. libc++
79-
// can only work around it via `_LIBCPP_PREFERRED_OVERLOAD`, which is only
80-
// available in modern versions of Clang, and not elsewhere.
81-
#if defined(TEST_COMPILER_CLANG) || !defined(__BIONIC__)
8277
assert(!std::isnan(ConvertibleTo<double>()));
83-
#endif
8478
assert(!std::isnan(ConvertibleTo<long double>()));
8579
}
8680

0 commit comments

Comments
 (0)