//===----------------------------------------------------------------------===// // // 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 // extent #include #include "test_macros.h" template __host__ __device__ void test_extent() { static_assert((cuda::std::extent::value == A), ""); static_assert((cuda::std::extent::value == A), ""); static_assert((cuda::std::extent::value == A), ""); static_assert((cuda::std::extent::value == A), ""); static_assert((cuda::std::extent_v == A), ""); static_assert((cuda::std::extent_v == A), ""); static_assert((cuda::std::extent_v == A), ""); static_assert((cuda::std::extent_v == A), ""); } template __host__ __device__ void test_extent1() { static_assert((cuda::std::extent::value == A), ""); static_assert((cuda::std::extent::value == A), ""); static_assert((cuda::std::extent::value == A), ""); static_assert((cuda::std::extent::value == A), ""); static_assert((cuda::std::extent_v == A), ""); static_assert((cuda::std::extent_v == A), ""); static_assert((cuda::std::extent_v == A), ""); static_assert((cuda::std::extent_v == A), ""); } class Class { public: __host__ __device__ ~Class(); }; int main(int, char**) { 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(); return 0; }