* ru.po: Update.
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / access17.C
blobe64fa1aed4188ae44cd80107a0a12f10cf168a9f
1 // { dg-do assemble  }
2 // Make sure definitions of static members have the right access.
4 struct A {
5 protected:
6   int i;                        // { dg-message "" } private
7   int f ();                     // { dg-message "" } 
8 };
10 struct B: public A {
11   static int A::*p;
12   static int (A::*fp)();
15 int A::* B::p = &A::i;         // { dg-error "" } 
16 int (A::* B::fp)() = &A::f;    // { dg-error "" }
18 struct C {
19   static int A::*p;
20   static int (A::*fp)();
23 int A::* C::p = &A::i;          // { dg-error "" } 
24 int (A::* C::fp)() = &A::f;     // { dg-error "" }