blob: 64ad950927c337e2729aabb0eb165cfe6f69c9fa [file] [log] [blame]
// PR c++/63985
// { dg-require-effective-target c++11 }
void foo()
{
int arr;
for (int i = 5: arr) // { dg-error "initializer in range-based" }
;
for (int i, j: arr) // { dg-error "multiple declarations in range-based" }
;
}