1 //===----------------------------------------------------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
17 #include <type_traits>
25 static_assert((std::is_same<decltype(std::isnan((float)0)), bool>::value), "");
26 static_assert((std::is_same<decltype(std::isnan((double)0)), bool>::value), "");
27 static_assert((std::is_same<decltype(std::isnan(0)), bool>::value), "");
28 static_assert((std::is_same<decltype(std::isnan((long double)0)), bool>::value), "");
29 assert(std::isnan(-1.0) == false);