Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.brendan/visibility8.C

raw
1 // { dg-do assemble }
2 // GROUPS passed visibility
3 // Make sure private inheritance affects the visibility of
4 // static members used in an inherited context.
5 class foo
6 {
7 public:
8 static int y;
9 };
10 class foo1 : private foo // { dg-message "" } private
11 { };
12 class foo2 : public foo1
13 { public:
14 void bar () { y; }// { dg-error "" } .*
15 };