]>
Commit | Line | Data |
---|---|---|
d6479fe7 MM |
1 | // Build don't link: |
2 | ||
876200a8 | 3 | struct A { // ERROR - inaccessible |
d6479fe7 MM |
4 | static int i; |
5 | }; | |
6 | ||
7 | struct B : private A { }; | |
8 | ||
9 | struct C : public B { | |
876200a8 | 10 | int f () { return A::i; } // ERROR - context |
d6479fe7 | 11 | }; |