Sign in
gnu
/
gcc
/
7d75ea04cf6d9c8960d5c6119d6203568b7069e9
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
range-for10.C
blob: 7288a3b8b0c7cfae19553ae38e085bee5e03981a [
file
] [
log
] [
blame
]
// PR c++/47388
// { dg-do compile { target c++11 } }
// { dg-options "-fno-for-scope -Wno-deprecated" }
template
<int>
void
foo
()
{
int
a
[]
=
{
1
,
2
,
3
,
4
};
for
(
int
i
:
a
)
;
}
void
bar
()
{
foo
<
0
>
();
}