Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.brendan/scope1.C

raw
1 // { dg-do assemble }
2 // GROUPS passed scoping
3 int f (int i) {
4 if (i)
5 for (int j = i; j; j--)
6 ;
7 return j; // error: j should only be in scope inside the body of `for'// { dg-error "" } .*
8 }