Debian Codegraph @

gcc/testsuite/g++.dg/parse/error61.C

raw
1 // PR c++/85258
2 // { dg-do compile { target c++11 } }
3
4 template<int> void foo()
5 {
6 int x[8];
7 for (int& i, j : x) // { dg-error "multiple|reference" }
8 i = 0;
9 }
10
11 void bar()
12 {
13 foo<0>();
14 }