aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.brendan/visibility1.C
blob: 7d11f875716f4bc0ee702175a89c38f2d4b7acca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Build don't link: 
// GROUPS passed visibility
class foo {
protected:
  int i;
};

class bar : public foo {
public:
  friend void baz (foo *);
};

void baz (foo *f)
{
  f->i = 1;	// error: i is protected// ERROR - .*
}