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/depr/depr.c.headers/math_h_isnan.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/depr/depr.c.headers/math_h_isnan.pass.cpp')
| -rw-r--r-- | libcxx/test/std/depr/depr.c.headers/math_h_isnan.pass.cpp | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/libcxx/test/std/depr/depr.c.headers/math_h_isnan.pass.cpp b/libcxx/test/std/depr/depr.c.headers/math_h_isnan.pass.cpp deleted file mode 100644 index 118f96bdd43..00000000000 --- a/libcxx/test/std/depr/depr.c.headers/math_h_isnan.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. -// -//===----------------------------------------------------------------------===// - -// <math.h> - -// isnan - -// XFAIL: linux - -#include <math.h> -#include <type_traits> -#include <cassert> - -int main() -{ -#ifdef isnan -#error isnan defined -#endif - static_assert((std::is_same<decltype(isnan((float)0)), bool>::value), ""); - static_assert((std::is_same<decltype(isnan((double)0)), bool>::value), ""); - static_assert((std::is_same<decltype(isnan(0)), bool>::value), ""); - static_assert((std::is_same<decltype(isnan((long double)0)), bool>::value), ""); - assert(isnan(-1.0) == false); -} |

