Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.other/shadow1.C

raw
1 // { dg-do assemble }
2 // Bug: g++ thinks that the i in g() shadows the parm from f()
3 // Contributed by Jason Merrill <[email protected]>
4
5 void f (int i)
6 {
7 struct A {
8 void g () {
9 int i;
10 }
11 };
12 }