//===----------------------------------------------------------------------===//
//
// 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<type_traits>template<classT>voidtest_is_volatile(){static_assert(!std::is_volatile<T>::value,"");static_assert(!std::is_volatile<constT>::value,"");static_assert(std::is_volatile<volatileT>::value,"");static_assert(std::is_volatile<constvolatileT>::value,"");}intmain(){test_is_volatile<void>();test_is_volatile<int>();test_is_volatile<double>();test_is_volatile<int*>();test_is_volatile<constint*>();test_is_volatile<char[3]>();test_is_volatile<char[3]>();static_assert(!std::is_volatile<int&>::value,"");static_assert(!std::is_volatile<volatileint&>::value,"");}