2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / scoping2.C
blobcf80da130408e8d02970b546b47ed4a3e201a4a3
1 // { dg-do assemble  }
2 // Bug: A function is not hidden properly by a use of its name in an
3 // inner scope.
5 struct A
7     struct B
8     {
9         int f;
10         B() : f(0) {};
11         void g() { f = 0; };
12     };
13     void f();
14     void f(int);