//===----------------------------------------------------------------------===// // // 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 // void_t #include #if _LIBCPP_STD_VER <= 14 int main () {} #else template void test1() { static_assert( std::is_same>::value, ""); static_assert( std::is_same>::value, ""); static_assert( std::is_same>::value, ""); static_assert( std::is_same>::value, ""); } template void test2() { static_assert( std::is_same>::value, ""); static_assert( std::is_same>::value, ""); static_assert( std::is_same>::value, ""); static_assert( std::is_same>::value, ""); static_assert( std::is_same>::value, ""); static_assert( std::is_same>::value, ""); static_assert( std::is_same>::value, ""); static_assert( std::is_same>::value, ""); } class Class { public: ~Class(); }; int main() { static_assert( std::is_same>::value, ""); test1(); test1(); test1(); test1(); test1(); test1(); test1(); test2(); test2(); test2(); test2(); test2(); static_assert( std::is_same>::value, ""); } #endif