blob: 2d69e7bcf01fc50e7b907169c1828a1c6366be36 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// Build don't link:
// GROUPS passed visibility
// Make sure private inheritance affects the visibility of
// static members used in an inherited context.
class foo
{
public:
static int y; // ERROR - private
};
class foo1 : private foo
{ };
class foo2 : public foo1
{ public:
void bar () { y; }// ERROR - .*
};
|