//===----------------------------------------------------------------------===// // // 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 // denorm_min() #include #include template void test(T expected) { assert(std::numeric_limits::denorm_min() == expected); assert(std::numeric_limits::denorm_min() == expected); assert(std::numeric_limits::denorm_min() == expected); assert(std::numeric_limits::denorm_min() == expected); } int main() { test(false); test(0); test(0); test(0); test(0); #ifndef _LIBCPP_HAS_NO_UNICODE_CHARS test(0); test(0); #endif // _LIBCPP_HAS_NO_UNICODE_CHARS test(0); test(0); test(0); test(0); test(0); test(0); test(0); test(0); #ifndef _LIBCPP_HAS_NO_INT128 test<__int128_t>(0); test<__uint128_t>(0); #endif test(__FLT_DENORM_MIN__); test(__DBL_DENORM_MIN__); test(__LDBL_DENORM_MIN__); }