Skip to content

Commit

Permalink
Remove preprocessor macros from tests
Browse files Browse the repository at this point in the history
  • Loading branch information
robincaloudis committed Aug 7, 2024
1 parent 43b1921 commit 7d06711
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
6 changes: 0 additions & 6 deletions libcxx/test/std/numerics/c.math/isinf.pass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,7 @@ int main(int, char**) {
// Make sure we can call `std::isinf` with convertible types
{
assert(!std::isinf(ConvertibleTo<float>()));
// 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<double>()));
#endif
assert(!std::isinf(ConvertibleTo<long double>()));
}

Expand Down
6 changes: 0 additions & 6 deletions libcxx/test/std/numerics/c.math/isnan.pass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,7 @@ int main(int, char**) {
// Make sure we can call `std::isnan` with convertible types
{
assert(!std::isnan(ConvertibleTo<float>()));
// 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<double>()));
#endif
assert(!std::isnan(ConvertibleTo<long double>()));
}

Expand Down

0 comments on commit 7d06711

Please sign in to comment.