//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // type_traits // is_volatile #include template void test_is_volatile() { static_assert(!std::is_volatile::value, ""); static_assert(!std::is_volatile::value, ""); static_assert( std::is_volatile::value, ""); static_assert( std::is_volatile::value, ""); } int main() { test_is_volatile(); test_is_volatile(); test_is_volatile(); test_is_volatile(); test_is_volatile(); test_is_volatile(); test_is_volatile(); static_assert(!std::is_volatile::value, ""); static_assert(!std::is_volatile::value, ""); }