FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.law / visibility11.C
blobeeda777e116c3e9e781f5d382f793a456e854416
1 // Build don't link: 
2 // Special g++ Options: -w
3 // GROUPS passed visibility
4 // visibility file
5 // From: Alan Shepherd <a.shepherd@nexor.co.uk>
6 // Date:     Tue, 22 Jun 1993 14:53:23 +0100
7 // Subject:  bug with MI in gcc-2.4.5
8 // Message-ID: <9659.740757203@nexor.co.uk>
10 class A
12     int a;
14 protected:
16     virtual void State(int b)   { a = b; }
20 class B : public A
22     char* foo;
24 public:
26     B(const char*);
29 class C : public A
31     char* foo2;
33 public:
35     C(const char*);
38 class D : public B, public C
40 public:
41   D();
42 protected:
44     virtual void State(int a)
45     {
46         B::State(a);
47         C::State(a);
48     }