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>; }