//===----------------------------------------------------------------------===// // // 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_signed #include template void test_is_signed() { static_assert( std::is_signed::value, ""); static_assert( std::is_signed::value, ""); static_assert( std::is_signed::value, ""); static_assert( std::is_signed::value, ""); } template void test_is_not_signed() { static_assert(!std::is_signed::value, ""); static_assert(!std::is_signed::value, ""); static_assert(!std::is_signed::value, ""); static_assert(!std::is_signed::value, ""); } class Class { public: ~Class(); }; int main() { test_is_not_signed(); test_is_not_signed(); test_is_not_signed(); test_is_not_signed(); test_is_not_signed(); test_is_not_signed(); test_is_not_signed(); test_is_not_signed(); test_is_not_signed(); test_is_signed(); test_is_signed(); #ifndef _LIBCPP_HAS_NO_INT128 test_is_signed<__int128_t>(); test_is_not_signed<__uint128_t>(); #endif }