| //===----------------------------------------------------------------------===// |
| // The LLVM Compiler Infrastructure |
| // This file is distributed under the University of Illinois Open Source |
| // License. See LICENSE.TXT for details. |
| //===----------------------------------------------------------------------===// |
| assert(std::numeric_limits<T>::epsilon() == expected); |
| assert(std::numeric_limits<const T>::epsilon() == expected); |
| assert(std::numeric_limits<volatile T>::epsilon() == expected); |
| assert(std::numeric_limits<const volatile T>::epsilon() == expected); |
| #ifndef _LIBCPP_HAS_NO_UNICODE_CHARS |
| test<unsigned long long>(0); |
| test<float>(FLT_EPSILON); |
| test<double>(DBL_EPSILON); |
| test<long double>(LDBL_EPSILON); |