2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.law / visibility9.C
blob05e7a22380f4b5b8f884cf55fc2a8bc318bf452c
1 // { dg-do assemble  }
2 // GROUPS passed visibility
3 // visibility file
4 // rom: roland@jts.com (Roland Knight )
5 // Date:     Sat, 8 May 1993 17:27:35 -0400
6 // Subject:  gcc 2.3.3 protected member access bug
7 // Message-ID: <9305082127.AA19577@icepick.jts.com>
9 class A {
10 protected:
11     int a; // { dg-error "" } protected
14 class B : public A {
15 public:
16     void f1(A* pa);
20 void B::f1(A* pa) {
21     pa->a = 1;    // illegal but allowed by gcc// { dg-error "" } .*