From 589308a0b18f8d5bccd6e92461090871169c7b87 Mon Sep 17 00:00:00 2001 From: Eric Fiselier Date: Fri, 27 May 2016 22:19:53 +0000 Subject: 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 --- .../test/std/numerics/c.math/cmath_isinf.pass.cpp | 30 ---------------------- 1 file changed, 30 deletions(-) delete mode 100644 libcxx/test/std/numerics/c.math/cmath_isinf.pass.cpp (limited to 'libcxx/test/std/numerics/c.math/cmath_isinf.pass.cpp') 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. -// -//===----------------------------------------------------------------------===// - -// - -// isinf - -// XFAIL: linux - -#include -#include -#include - -int main() -{ -#ifdef isinf -#error isinf defined -#endif - static_assert((std::is_same::value), ""); - static_assert((std::is_same::value), ""); - static_assert((std::is_same::value), ""); - static_assert((std::is_same::value), ""); - assert(std::isinf(-1.0) == false); -} \ No newline at end of file -- cgit v1.2.3