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