Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
range-for29.C
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" }
;
}