repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
range-for35.C
blob
c77a5af5a44906cf3a320ef1c21ec33ee5fa62ac
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>; }