//===----------------------------------------------------------------------===// // // 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. // //===----------------------------------------------------------------------===// // UNSUPPORTED: c++98, c++03, c++11, c++14, c++17 // type_traits // remove_cvref #include #include "test_macros.h" template void test_remove_cvref() { static_assert((std::is_same::type, U>::value), ""); static_assert((std::is_same< std::remove_cvref_t, U>::value), ""); } int main() { test_remove_cvref(); test_remove_cvref(); test_remove_cvref(); test_remove_cvref(); test_remove_cvref(); // Doesn't decay test_remove_cvref(); test_remove_cvref(); test_remove_cvref(); test_remove_cvref(); test_remove_cvref(); test_remove_cvref(); test_remove_cvref(); test_remove_cvref(); test_remove_cvref(); test_remove_cvref(); test_remove_cvref(); test_remove_cvref(); test_remove_cvref(); test_remove_cvref(); }