summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.brendan/visibility7.C
blob: f7bf00c1a722a107edf7e1706ad3c8e16400f362 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// { dg-do assemble  }
// GROUPS passed visibility
class X
{
public:
  void fn ();// { dg-error "" } .*
};
class Y : private X
{};

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