Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
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" }
;
}