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