//===----------------------------------------------------------------------===// // // 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 // UNSUPPORTED: c++98, c++03, c++11, c++14 // XFAIL: gcc-5.1, gcc-5.2 #include 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, ""); }