aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/variadic119.C
blob: 78cd23e20516d2d0775c856e55766bacf0a8aa4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// PR c++/51046
// { dg-do compile { target c++11 } }

template<int... IS>
void f()
{
  for (int i : IS);		// { dg-error "not expanded" }
}

int main()
{
  f<0, 1, 2>();
}