Fix test-suite fallout of default -Wreturn-type.
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / shadow1.C
blobfe3ec951b782e843f1a4a7d3230e8e4f6a9f6b16
1 // { dg-do assemble  }
2 // { dg-options "-Wshadow" }
4 class x {
5 public:
6         void fun();
7 private:
8         int foo;
9 };
11 void x::fun() { }
13 int
14 main ()
16         float foo;
17         return 0;