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
PR c++/86728 - C variadic generic lambda.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
range-for9.C
blob
eaa5b4068800959be02026a061f9187839a8c6db
1
// Test for range-based for loop error in C++98 mode
2
3
// { dg-do compile { target { ! c++11 } } }
4
5
void test()
6
{
7
int a[] = {0,1,2};
8
for (int x : a) // { dg-error "range-based 'for'|forming reference" }
9
;
10
}