diff options
author | Eric Fiselier <eric@efcs.ca> | 2016-05-27 22:19:53 +0000 |
---|---|---|
committer | Eric Fiselier <eric@efcs.ca> | 2016-05-27 22:19:53 +0000 |
commit | 589308a0b18f8d5bccd6e92461090871169c7b87 (patch) | |
tree | 4f3140a917a787d24e7d091e2c02b184e183fbca /libcxx/test/std/numerics/c.math/cmath_isinf.pass.cpp | |
parent | 2abf6bdfc20968ad46aaa489c55873fe7fe77c84 (diff) | |
download | bcm5719-llvm-589308a0b18f8d5bccd6e92461090871169c7b87.tar.gz bcm5719-llvm-589308a0b18f8d5bccd6e92461090871169c7b87.zip |
Tolerate incorrect return type for 'isinf' and 'isnan' in tests.
Summary:
GLIBC recently removed the incorrect `int isinf(double)` and `int isnan(double)` overloads in C++11 and greater. This causes previously `XFAIL: linux` tests to start passing.
Since there is no longer a way to 'XFAIL' the tests I choose to simply tolerate this bug.
See https://sourceware.org/bugzilla/show_bug.cgi?id=19439
Reviewers: rsmith, mclow.lists, EricWF
Subscribers: jroelofs, cfe-commits
Differential Revision: http://reviews.llvm.org/D19835
llvm-svn: 271060
Diffstat (limited to 'libcxx/test/std/numerics/c.math/cmath_isinf.pass.cpp')
-rw-r--r-- | libcxx/test/std/numerics/c.math/cmath_isinf.pass.cpp | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/libcxx/test/std/numerics/c.math/cmath_isinf.pass.cpp b/libcxx/test/std/numerics/c.math/cmath_isinf.pass.cpp deleted file mode 100644 index 6cde04d9bc8..00000000000 --- a/libcxx/test/std/numerics/c.math/cmath_isinf.pass.cpp +++ /dev/null @@ -1,30 +0,0 @@ -//===----------------------------------------------------------------------===// -// -// The LLVM Compiler Infrastructure -// -// This file is dual licensed under the MIT and the University of Illinois Open -// Source Licenses. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// - -// <cmath> - -// isinf - -// XFAIL: linux - -#include <cmath> -#include <type_traits> -#include <cassert> - -int main() -{ -#ifdef isinf -#error isinf defined -#endif - static_assert((std::is_same<decltype(std::isinf((float)0)), bool>::value), ""); - static_assert((std::is_same<decltype(std::isinf((double)0)), bool>::value), ""); - static_assert((std::is_same<decltype(std::isinf(0)), bool>::value), ""); - static_assert((std::is_same<decltype(std::isinf((long double)0)), bool>::value), ""); - assert(std::isinf(-1.0) == false); -}
\ No newline at end of file |