//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // type_traits // rank #include 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, ""); } class Class { public: ~Class(); }; int main() { test_rank(); test_rank(); test_rank(); test_rank(); test_rank(); test_rank(); test_rank(); test_rank(); test_rank(); test_rank(); test_rank(); test_rank(); }