//===----------------------------------------------------------------------===// // // 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_literal_type #include template void test_is_literal_type() { static_assert( std::is_literal_type::value, ""); } template void test_is_not_literal_type() { static_assert(!std::is_literal_type::value, ""); } struct A { }; struct B { B(); }; int main() { test_is_literal_type (); test_is_literal_type (); test_is_literal_type (); test_is_literal_type (); test_is_literal_type (); test_is_not_literal_type (); }