//===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // type_traits // rank #include #include "test_macros.h" template void test_rank() { static_assert( std::rank::value == A, ""); static_assert( std::rank::value == A, ""); static_assert( std::rank::value == A, ""); static_assert( std::rank::value == A, ""); #if TEST_STD_VER > 14 static_assert( std::rank_v == A, ""); static_assert( std::rank_v == A, ""); static_assert( std::rank_v == A, ""); static_assert( std::rank_v == A, ""); #endif } class Class { public: ~Class(); }; int main(int, char**) { test_rank(); test_rank(); test_rank(); test_rank(); test_rank(); test_rank(); test_rank(); test_rank(); test_rank(); test_rank(); test_rank(); test_rank(); return 0; }