Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.brendan/visibility10.C

raw
1 // { dg-do assemble }
2 // GROUPS passed visibility
3 struct base
4 {
5 protected:
6 void base_func() {}// { dg-message "" } .*protected.*
7 };
8
9 struct derived : public base
10 {
11 protected:
12 void derived_func(base *ptr) { ptr->base_func(); }// { dg-error "" } within this context
13 };
14