]> gcc.gnu.org Git - gcc.git/blame - gcc/testsuite/g++.old-deja/g++.brendan/visibility1.C
cp-tree.h (flag_access_control): Declare.
[gcc.git] / gcc / testsuite / g++.old-deja / g++.brendan / visibility1.C
CommitLineData
921e5a0e
JL
1// Build don't link:
2// GROUPS passed visibility
3class foo {
4protected:
d6479fe7 5 int i; // ERROR - protected
921e5a0e
JL
6};
7
8class bar : public foo {
9public:
10 friend void baz (foo *);
11};
12
13void baz (foo *f)
14{
15 f->i = 1; // error: i is protected// ERROR - .*
16}
This page took 0.363966 seconds and 5 git commands to generate.