//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
// type_traits
// remove_all_extents
#include<type_traits>enumEnum{zero,one_};intmain(){static_assert((std::is_same<std::remove_all_extents<int>::type,int>::value),"");static_assert((std::is_same<std::remove_all_extents<constEnum>::type,constEnum>::value),"");static_assert((std::is_same<std::remove_all_extents<int[]>::type,int>::value),"");static_assert((std::is_same<std::remove_all_extents<constint[]>::type,constint>::value),"");static_assert((std::is_same<std::remove_all_extents<int[3]>::type,int>::value),"");static_assert((std::is_same<std::remove_all_extents<constint[3]>::type,constint>::value),"");static_assert((std::is_same<std::remove_all_extents<int[][3]>::type,int>::value),"");static_assert((std::is_same<std::remove_all_extents<constint[][3]>::type,constint>::value),"");static_assert((std::is_same<std::remove_all_extents<int[2][3]>::type,int>::value),"");static_assert((std::is_same<std::remove_all_extents<constint[2][3]>::type,constint>::value),"");static_assert((std::is_same<std::remove_all_extents<int[1][2][3]>::type,int>::value),"");static_assert((std::is_same<std::remove_all_extents<constint[1][2][3]>::type,constint>::value),"");}