diff options
author | Eric Fiselier <eric@efcs.ca> | 2014-12-20 01:40:03 +0000 |
---|---|---|
committer | Eric Fiselier <eric@efcs.ca> | 2014-12-20 01:40:03 +0000 |
commit | 5a83710e371fe68a06e6e3876c6a2c8b820a8976 (patch) | |
tree | afde4c82ad6704681781c5cd49baa3fbd05c85db /libcxx/test/language.support/support.limits/limits/numeric.limits.members/infinity.pass.cpp | |
parent | f11e8eab527fba316c64112f6e05de1a79693a3e (diff) | |
download | bcm5719-llvm-5a83710e371fe68a06e6e3876c6a2c8b820a8976.tar.gz bcm5719-llvm-5a83710e371fe68a06e6e3876c6a2c8b820a8976.zip |
Move test into test/std subdirectory.
llvm-svn: 224658
Diffstat (limited to 'libcxx/test/language.support/support.limits/limits/numeric.limits.members/infinity.pass.cpp')
-rw-r--r-- | libcxx/test/language.support/support.limits/limits/numeric.limits.members/infinity.pass.cpp | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/libcxx/test/language.support/support.limits/limits/numeric.limits.members/infinity.pass.cpp b/libcxx/test/language.support/support.limits/limits/numeric.limits.members/infinity.pass.cpp deleted file mode 100644 index a2ccca333cc..00000000000 --- a/libcxx/test/language.support/support.limits/limits/numeric.limits.members/infinity.pass.cpp +++ /dev/null @@ -1,58 +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. -// -//===----------------------------------------------------------------------===// - -// test numeric_limits - -// infinity() - -#include <limits> -#include <cfloat> -#include <cassert> - -template <class T> -void -test(T expected) -{ - assert(std::numeric_limits<T>::infinity() == expected); - assert(std::numeric_limits<const T>::infinity() == expected); - assert(std::numeric_limits<volatile T>::infinity() == expected); - assert(std::numeric_limits<const volatile T>::infinity() == expected); -} - -extern float zero; - -int main() -{ - test<bool>(false); - test<char>(0); - test<signed char>(0); - test<unsigned char>(0); - test<wchar_t>(0); -#ifndef _LIBCPP_HAS_NO_UNICODE_CHARS - test<char16_t>(0); - test<char32_t>(0); -#endif // _LIBCPP_HAS_NO_UNICODE_CHARS - test<short>(0); - test<unsigned short>(0); - test<int>(0); - test<unsigned int>(0); - test<long>(0); - test<unsigned long>(0); - test<long long>(0); - test<unsigned long long>(0); -#ifndef _LIBCPP_HAS_NO_INT128 - test<__int128_t>(0); - test<__uint128_t>(0); -#endif - test<float>(1./zero); - test<double>(1./zero); - test<long double>(1./zero); -} - -float zero = 0; |