//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
// type_traits
// add_volatile
#include<type_traits>template<classT,classU>voidtest_add_volatile_imp(){static_assert((std::is_same<typenamestd::add_volatile<T>::type,volatileU>::value),"");}template<classT>voidtest_add_volatile(){test_add_volatile_imp<T,volatileT>();test_add_volatile_imp<constT,constvolatileT>();test_add_volatile_imp<volatileT,volatileT>();test_add_volatile_imp<constvolatileT,constvolatileT>();}intmain(){test_add_volatile<void>();test_add_volatile<int>();test_add_volatile<int[3]>();test_add_volatile<int&>();test_add_volatile<constint&>();test_add_volatile<int*>();test_add_volatile<constint*>();}