Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/range-for35.C

raw
1 // PR c++/86060
2 // { dg-options -Wpedantic }
3
4 template <typename T> void foo(T (&a)[8]) {
5 for (int i : a) // { dg-warning "range-based" "" { target c++98_only } }
6 i;
7 }
8 void fn1() { foo<int>; }