Sign in
chromium
/
chromiumos
/
third_party
/
gcc
/
refs/heads/factory-ryu-6486.B
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
range-for10.C
blob: 1397830908d773d7530c5f8f7a0e9202093bfd4f [
file
] [
log
] [
blame
]
// PR c++/47388
// { dg-do compile { target c++11 } }
// { dg-options "-fno-for-scope" }
template
<int>
void
foo
()
{
int
a
[]
=
{
1
,
2
,
3
,
4
};
for
(
int
i
:
a
)
;
}
void
bar
()
{
foo
<
0
>
();
}