Sign in
gnu
/
gcc
/
refs/tags/releases/gcc-4.6.0
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
range-for10.C
blob: 662074890d9dba7f2ab6b7a29aca25fdc2246150 [
file
] [
log
] [
blame
]
// PR c++/47388
// { dg-do compile }
// { dg-options "-fno-for-scope -std=c++0x" }
template
<int>
void
foo
()
{
int
a
[]
=
{
1
,
2
,
3
,
4
};
for
(
int
i
:
a
)
;
}
void
bar
()
{
foo
<
0
>
();
}