2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.brendan / visibility10.C
blob89d2157995a87703f5472944c2e86ba5cc710187
1 // { dg-do assemble  }
2 // GROUPS passed visibility
3 struct base
5     protected:
6         void base_func() {}// { dg-error "" } .*is protected.*
7 };
9 struct derived : public base
11     protected:
12         void derived_func(base *ptr) { ptr->base_func(); }// { dg-error "" }  within this context