2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / access13.C
bloba891aeaad83e3b3580fbda30d5d4654f742bec1e
1 // { dg-do assemble  }
2 // PRMS Id: 4955
4 struct A {
5  protected:
6   int i;
7   void f ();
8 };
10 struct B: public A {
11   void g () {
12     this->A::i = 1;             // { dg-bogus "" } access control failure
13     this->A::f();               // { dg-bogus "" } access control failure
14   }