#include <tr1/type_traits>
#include <testsuite_hooks.h>
#include <testsuite_tr1.h>
void test01()
{
bool test __attribute__((unused)) = true;
using std::tr1::remove_extent;
using std::tr1::is_same;
using namespace __gnu_test;
VERIFY( (is_same<remove_extent<int>::type, int>::value) );
VERIFY( (is_same<remove_extent<int[2]>::type, int>::value) );
VERIFY( (is_same<remove_extent<int[2][3]>::type, int[3]>::value) );
VERIFY( (is_same<remove_extent<int[][3]>::type, int[3]>::value) );
VERIFY( (is_same<remove_extent<const int[2]>::type, const int>::value) );
VERIFY( (is_same<remove_extent<ClassType>::type, ClassType>::value) );
VERIFY( (is_same<remove_extent<ClassType[2]>::type, ClassType>::value) );
VERIFY( (is_same<remove_extent<ClassType[2][3]>::type,
ClassType[3]>::value) );
VERIFY( (is_same<remove_extent<ClassType[][3]>::type,
ClassType[3]>::value) );
VERIFY( (is_same<remove_extent<const ClassType[2]>::type,
const ClassType>::value) );
}
int main()
{
test01();
return 0;
}