Debian Codegraph @

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

raw
1 // PR c++/58503
2 // { dg-require-effective-target c++11 }
3
4 template<int> void foo()
5 {
6 for (auto i : 0) {} // { dg-error "there are no arguments" }
7 }