aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/range-for27.C
blob: a9cfb8ebc32c7c80d2b2d16e9ed47120a7290741 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// PR c++/58503
// { dg-require-effective-target c++11 }
// { dg-options "-fpermissive -w" }

struct c { };

template<int> void foo()
{
  for (auto i : c()) { }
}

c* begin(const c&);
c* end(const c&);

template void foo<1>();