aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.law/visibility12.C
blob: 3aa6d6b26b86a259a5f7f1ebf91b41c3ddb540e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Build don't link: 
// GROUPS passed visibility
// visibility file
// From: Mark Rawling <Mark.Rawling@mel.dit.csiro.au>
// Date:     Wed, 30 Jun 93 15:28:34 +1000
// Subject:  member access rule bug
// Message-ID: <9306300528.AA17185@coda.mel.dit.CSIRO.AU>
struct a {
  int aa; // ERROR - private
        };

class b : private a {
        };

class c : public b {
        int xx(void) { return (aa); }  // aa should be invisible// ERROR - .*
        };