summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/shadow1.C
blob: 941f80cfc009867ffc6b1e13d9e9947da2f13708 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// { dg-do assemble  }
// { dg-options "-Wshadow" }

class x {
public:
        void fun();
private:
        int foo;
};

void x::fun() { }

main ()
{
        float foo;
}