summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/variadic37.C
blob: a6e5f613fcd8d1d0f8b4c23ef6c012bd8eefbdd0 (plain)
1
2
3
4
5
6
7
8
9
10
// { 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];