//===----------------------------------------------------------------------===// // // 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. // //===----------------------------------------------------------------------===// // type_traits // extent #include #include "test_macros.h" template void test_extent() { static_assert((std::extent::value == A), ""); static_assert((std::extent::value == A), ""); static_assert((std::extent::value == A), ""); static_assert((std::extent::value == A), ""); #if TEST_STD_VER > 14 static_assert((std::extent_v == A), ""); static_assert((std::extent_v == A), ""); static_assert((std::extent_v == A), ""); static_assert((std::extent_v == A), ""); #endif } template void test_extent1() { static_assert((std::extent::value == A), ""); static_assert((std::extent::value == A), ""); static_assert((std::extent::value == A), ""); static_assert((std::extent::value == A), ""); #if TEST_STD_VER > 14 static_assert((std::extent_v == A), ""); static_assert((std::extent_v == A), ""); static_assert((std::extent_v == A), ""); static_assert((std::extent_v == A), ""); #endif } class Class { public: ~Class(); }; int main() { test_extent(); test_extent(); test_extent(); test_extent(); test_extent(); test_extent(); test_extent(); test_extent(); test_extent(); test_extent(); test_extent(); test_extent(); test_extent1(); test_extent1(); test_extent1(); test_extent1(); }