From 7d06711370c3973840d25df7f06989ef39a4e006 Mon Sep 17 00:00:00 2001 From: Robin Caloudis Date: Mon, 5 Aug 2024 23:58:05 +0200 Subject: [PATCH] Remove preprocessor macros from tests --- libcxx/test/std/numerics/c.math/isinf.pass.cpp | 6 ------ libcxx/test/std/numerics/c.math/isnan.pass.cpp | 6 ------ 2 files changed, 12 deletions(-) diff --git a/libcxx/test/std/numerics/c.math/isinf.pass.cpp b/libcxx/test/std/numerics/c.math/isinf.pass.cpp index 9f157fcf8a99e7..e5169e8056c2ea 100644 --- a/libcxx/test/std/numerics/c.math/isinf.pass.cpp +++ b/libcxx/test/std/numerics/c.math/isinf.pass.cpp @@ -74,13 +74,7 @@ int main(int, char**) { // Make sure we can call `std::isinf` with convertible types { assert(!std::isinf(ConvertibleTo())); - // When libc++ is layered on top of Bionic's libc, `math.h` exposes a - // function prototype for `isinf(double)` with return type `int`. libc++ - // can only work around it via `_LIBCPP_PREFERRED_OVERLOAD`, which is only - // available in modern versions of Clang, and not elsewhere. -#if defined(TEST_COMPILER_CLANG) || !defined(__BIONIC__) assert(!std::isinf(ConvertibleTo())); -#endif assert(!std::isinf(ConvertibleTo())); } diff --git a/libcxx/test/std/numerics/c.math/isnan.pass.cpp b/libcxx/test/std/numerics/c.math/isnan.pass.cpp index e1aa7872890ff7..e4ccab1243e567 100644 --- a/libcxx/test/std/numerics/c.math/isnan.pass.cpp +++ b/libcxx/test/std/numerics/c.math/isnan.pass.cpp @@ -74,13 +74,7 @@ int main(int, char**) { // Make sure we can call `std::isnan` with convertible types { assert(!std::isnan(ConvertibleTo())); - // When libc++ is layered on top of Bionic's libc, `math.h` exposes a - // function prototype for `isnan(double)` with return type `int`. libc++ - // can only work around it via `_LIBCPP_PREFERRED_OVERLOAD`, which is only - // available in modern versions of Clang, and not elsewhere. -#if defined(TEST_COMPILER_CLANG) || !defined(__BIONIC__) assert(!std::isnan(ConvertibleTo())); -#endif assert(!std::isnan(ConvertibleTo())); }