aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/range-for35.C
blob: c77a5af5a44906cf3a320ef1c21ec33ee5fa62ac (plain)
1
2
3
4
5
6
7
8
// 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>; }