aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.old-deja/g++.brendan/visibility8.C
blob: 00f5347ff86255f2b22d984169c108c7baa0be92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// { dg-do assemble  }
// GROUPS passed visibility
// Make sure private inheritance affects the visibility of
// static members used in an inherited context.
class foo
{
public:
  static int y; // { dg-error "" } private
};
class foo1 : private foo
{ };
class foo2 : public foo1
{ public:
  void bar () { y; }// { dg-error "" } .*
};