rt_gccstream/gcc/testsuite/g++.dg/cpp0x/variadic37.C

11 lines
265 B
C

// { dg-options "-std=gnu++0x" }
template<typename... Values>
struct tuple
{
static const __SIZE_TYPE__ length = sizeof...(Values);
};
int a0[tuple<>::length == 0? 1 : -1];
int a1[tuple<int>::length == 1? 1 : -1];
int a2[tuple<int, float>::length == 2? 1 : -1];