//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
// type_traits
// decay
#include<type_traits>template<classT,classU>voidtest_decay(){static_assert((std::is_same<typenamestd::decay<T>::type,U>::value),"");}intmain(){test_decay<void,void>();test_decay<int,int>();test_decay<constvolatileint,int>();test_decay<int*,int*>();test_decay<int[3],int*>();test_decay<constint[3],constint*>();test_decay<void(),void(*)()>();}