8sa1-gcc/gcc/testsuite/g++.old-deja/g++.other/shadow1.C
Jason Merrill 446588abcb new
From-SVN: r28559
1999-08-06 20:32:24 -04:00

13 lines
208 B
C

// Bug: g++ thinks that the i in g() shadows the parm from f()
// Contributed by Jason Merrill <jason@cygnus.com>
// Build don't link:
void f (int i)
{
struct A {
void g () {
int i;
}
};
}