aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/range-for23.C
blob: 849682c023a64803b5b14a0ea28d6671722a8f94 (plain)
1
2
3
4
5
6
7
8
// PR c++/56722
// { dg-do compile { target c++11 } }

int main()
{
  for (const auto& i, 21)  // { dg-error "has no initializer|expected" }
    i;
}