//===----------------------------------------------------------------------===// // // 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 // //===----------------------------------------------------------------------===// // // template class tuple; // template // struct tuple_element > // { // typedef Ti type; // }; // UNSUPPORTED: c++98, c++03 #include #include #include "test_macros.h" template void test() { static_assert((std::is_same::type, U>::value), ""); static_assert((std::is_same::type, const U>::value), ""); static_assert((std::is_same::type, volatile U>::value), ""); static_assert((std::is_same::type, const volatile U>::value), ""); #if TEST_STD_VER > 11 static_assert((std::is_same, U>::value), ""); static_assert((std::is_same, const U>::value), ""); static_assert((std::is_same, volatile U>::value), ""); static_assert((std::is_same, const volatile U>::value), ""); #endif } int main(int, char**) { test, 0, int>(); test, 0, char>(); test, 1, int>(); test, 0, int*>(); test, 1, char>(); test, 2, int>(); return 0; }