summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/range-for10.C
blob: 662074890d9dba7f2ab6b7a29aca25fdc2246150 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// PR c++/47388
// { dg-do compile }
// { dg-options "-fno-for-scope -std=c++0x" }

template <int>
void
foo ()
{
  int a[] = { 1, 2, 3, 4 };
  for (int i : a)
    ;
}

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