Debian Codegraph @

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

raw
1 // PR c++/56722
2 // { dg-do compile { target c++11 } }
3
4 int main()
5 {
6 for (const auto& i, 21) // { dg-error "has no initializer|expected" }
7 i;
8 }