FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / access22.C
blob225ef6cad5c6262a252ed2d293d909fb6605fb68
1 // PRMS Id: 8518
2 // Bug: Call to foo is not checked for accessibility
4 class A
6   private:
7     static void foo() {}        // ERROR - 
8   public:
9     void goo() {}
12 struct B : public A
14     void func() { foo(); }      // ERROR - 
17 int main()
19     B b;
20     b.func();