//===----------------------------------------------------------------------===// // // 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 // is_same #include template void test_is_same() { 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 test_is_same_ref() { 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 test_is_not_same() { static_assert((!std::is_same::value), ""); } class Class { public: ~Class(); }; int main() { test_is_same(); test_is_same(); test_is_same(); test_is_same(); test_is_same_ref(); test_is_not_same(); test_is_not_same(); test_is_not_same(); test_is_not_same(); test_is_not_same(); }