Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
range-for35.C
blob: c77a5af5a44906cf3a320ef1c21ec33ee5fa62ac [
file
] [
log
] [
blame
]
// PR c++/86060
// { dg-options -Wpedantic }
template
<
typename
T
>
void
foo
(
T
(&
a
)[
8
])
{
for
(
int
i
:
a
)
// { dg-warning "range-based" "" { target c++98_only } }
i
;
}
void
fn1
()
{
foo
<int>
;
}