URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.old-deja/] [g++.brendan/] [scope1.C] - Rev 699
Compare with Previous | Blame | View Log
// { dg-do assemble }
// GROUPS passed scoping
int f (int i) {
if (i)
for (int j = i; j; j--)
;
return j; // error: j should only be in scope inside the body of `for'// { dg-error "" } .*
}