//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // type_traits // add_cv #include template void test_add_cv_imp() { static_assert((std::is_same::type, const volatile U>::value), ""); } template void test_add_cv() { test_add_cv_imp(); test_add_cv_imp(); test_add_cv_imp(); test_add_cv_imp(); } int main() { test_add_cv(); test_add_cv(); test_add_cv(); test_add_cv(); test_add_cv(); test_add_cv(); test_add_cv(); }