aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/init/for2.C
blob: d66fea30ef212166d4da9eef33858700939032a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// { dg-do compile }
// PR 16012: Got the scope of I incorrect in templates only.

template<int> void foo()
{
   for (int i=0 ;;) ;
   int i;
}

void bar()
{
  foo<0>();
}