shadow1.C   [plain text]


// { 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;
    }
  };
}