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

13 lines
210 B
C

// { dg-do assemble }
// Bug: g++ thinks that the i in g() shadows the parm from f()
// Contributed by Jason Merrill <jason@cygnus.com>
void f (int i)
{
struct A {
void g () {
int i;
}
};
}