//===----------------------------------------------------------------------===// // // 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_volatile #include #include "test_macros.h" template void test_add_volatile_imp() { static_assert((std::is_same::type, volatile U>::value), ""); #if TEST_STD_VER > 11 static_assert((std::is_same, U>::value), ""); #endif } template void test_add_volatile() { test_add_volatile_imp(); test_add_volatile_imp(); test_add_volatile_imp(); test_add_volatile_imp(); } int main() { test_add_volatile(); test_add_volatile(); test_add_volatile(); test_add_volatile(); test_add_volatile(); test_add_volatile(); test_add_volatile(); }