diff options
Diffstat (limited to 'libcxx/test/std/numerics/bit/bit.pow.two/ceil2.pass.cpp')
-rw-r--r-- | libcxx/test/std/numerics/bit/bit.pow.two/ceil2.pass.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/libcxx/test/std/numerics/bit/bit.pow.two/ceil2.pass.cpp b/libcxx/test/std/numerics/bit/bit.pow.two/ceil2.pass.cpp index a469fad9257..5b66aca1400 100644 --- a/libcxx/test/std/numerics/bit/bit.pow.two/ceil2.pass.cpp +++ b/libcxx/test/std/numerics/bit/bit.pow.two/ceil2.pass.cpp @@ -6,14 +6,14 @@ // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// -// UNSUPPORTED: c++98, c++03, c++11, c++14, c++17 +// UNSUPPORTED: c++98, c++03, c++11, c++14, c++17 // template <class T> // constexpr T ceil2(T x) noexcept; -// Returns: The minimal value y such that ispow2(y) is true and y >= x; +// Returns: The minimal value y such that ispow2(y) is true and y >= x; // if y is not representable as a value of type T, the result is an unspecified value. -// Remarks: This function shall not participate in overload resolution unless +// Remarks: This function shall not participate in overload resolution unless // T is an unsigned integer type #include <bit> @@ -49,7 +49,7 @@ void runtime_test() { ASSERT_SAME_TYPE(T, decltype(std::ceil2(T(0)))); LIBCPP_ASSERT_NOEXCEPT( std::ceil2(T(0))); - + assert( std::ceil2(T(60)) == T( 64)); assert( std::ceil2(T(61)) == T( 64)); assert( std::ceil2(T(62)) == T( 64)); @@ -64,11 +64,11 @@ void runtime_test() int main() { - + { auto lambda = [](auto x) -> decltype(std::ceil2(x)) {}; using L = decltype(lambda); - + static_assert( std::is_invocable_v<L, unsigned char>, ""); static_assert( std::is_invocable_v<L, unsigned int>, ""); static_assert( std::is_invocable_v<L, unsigned long>, ""); @@ -104,7 +104,7 @@ int main() static_assert( std::is_invocable_v<L, __uint128_t>, ""); static_assert(!std::is_invocable_v<L, __int128_t>, ""); #endif - + static_assert(!std::is_invocable_v<L, A>, ""); static_assert(!std::is_invocable_v<L, E1>, ""); static_assert(!std::is_invocable_v<L, E2>, ""); |