//===----------------------------------------------------------------------===// // // 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 // add_const #include template void test_add_const_imp() { static_assert((std::is_same::type, const U>::value), ""); } template void test_add_const() { test_add_const_imp(); test_add_const_imp(); test_add_const_imp(); test_add_const_imp(); } int main() { test_add_const(); test_add_const(); test_add_const(); test_add_const(); test_add_const(); test_add_const(); test_add_const(); }