Home | History | Annotate | Download | only in numeric.limits.members

Lines Matching defs:test

10 // test numeric_limits
18 test()
20 static_assert(std::numeric_limits<T>::round_style == expected, "round_style test 1");
21 static_assert(std::numeric_limits<const T>::round_style == expected, "round_style test 2");
22 static_assert(std::numeric_limits<volatile T>::round_style == expected, "round_style test 3");
23 static_assert(std::numeric_limits<const volatile T>::round_style == expected, "round_style test 4");
28 test<bool, std::round_toward_zero>();
29 test<char, std::round_toward_zero>();
30 test<signed char, std::round_toward_zero>();
31 test<unsigned char, std::round_toward_zero>();
32 test<wchar_t, std::round_toward_zero>();
34 test<char16_t, std::round_toward_zero>();
35 test<char32_t, std::round_toward_zero>();
37 test<short, std::round_toward_zero>();
38 test<unsigned short, std::round_toward_zero>();
39 test<int, std::round_toward_zero>();
40 test<unsigned int, std::round_toward_zero>();
41 test<long, std::round_toward_zero>();
42 test<unsigned long, std::round_toward_zero>();
43 test<long long, std::round_toward_zero>();
44 test<unsigned long long, std::round_toward_zero>();
46 test<__int128_t, std::round_toward_zero>();
47 test<__uint128_t, std::round_toward_zero>();
49 test<float, std::round_to_nearest>();
50 test<double, std::round_to_nearest>();
51 test<long double, std::round_to_nearest>();