OSDN Git Service

/cp
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / cpp0x / range-for10.C
1 // PR c++/47388
2 // { dg-do compile }
3 // { dg-options "-fno-for-scope -std=c++0x" }
4
5 template <int>
6 void
7 foo ()
8 {
9   int a[] = { 1, 2, 3, 4 };
10   for (int i : a)
11     ;
12 }
13
14 void
15 bar ()
16 {
17   foo <0> ();
18 }