Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/range-for27.C

raw
1 // PR c++/58503
2 // { dg-require-effective-target c++11 }
3 // { dg-options "-fpermissive -w" }
4
5 struct c { };
6
7 template<int> void foo()
8 {
9 for (auto i : c()) { }
10 }
11
12 c* begin(const c&);
13 c* end(const c&);
14
15 template void foo<1>();