aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.brendan/visibility7.C
blob: 670547dd2e377f1ba9363d35b43b0f8a749bee36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Build don't link: 
// GROUPS passed visibility
class X
{
public:
  void fn ();// ERROR - .*
};
class Y : private X
{};

class Unrelated
{
public:
  void foo () { Y y; y.fn (); }// ERROR - .*
};