Fix PR c++/69139 (deduction failure with trailing return type)
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / range-for23.C
blob849682c023a64803b5b14a0ea28d6671722a8f94
1 // PR c++/56722
2 // { dg-do compile { target c++11 } }
4 int main()
6   for (const auto& i, 21)  // { dg-error "has no initializer|expected" }
7     i;