aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/variadic37.C
blob: db488ef55a4c26c46475d3327a548be575dd9c54 (plain)
1
2
3
4
5
6
7
8
9
10
// { dg-do compile { target c++11 } }
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];