//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // type_traits // is_pod #include template void test_is_pod() { static_assert( std::is_pod::value, ""); static_assert( std::is_pod::value, ""); static_assert( std::is_pod::value, ""); static_assert( std::is_pod::value, ""); } template void test_is_not_pod() { static_assert(!std::is_pod::value, ""); static_assert(!std::is_pod::value, ""); static_assert(!std::is_pod::value, ""); static_assert(!std::is_pod::value, ""); } class Class { public: ~Class(); }; int main() { test_is_not_pod(); test_is_not_pod(); test_is_not_pod(); test_is_pod(); test_is_pod(); test_is_pod(); test_is_pod(); test_is_pod(); test_is_pod(); }