Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.old-deja/g++.law/visibility12.C @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 // { dg-do assemble } |
2 // GROUPS passed visibility | |
3 // visibility file | |
4 // From: Mark Rawling <Mark.Rawling@mel.dit.csiro.au> | |
5 // Date: Wed, 30 Jun 93 15:28:34 +1000 | |
6 // Subject: member access rule bug | |
7 // Message-ID: <9306300528.AA17185@coda.mel.dit.CSIRO.AU> | |
8 struct a { | |
9 int aa; // { dg-message "" } private | |
10 }; | |
11 | |
12 class b : private a { | |
13 }; | |
14 | |
15 class c : public b { | |
16 int xx(void) { return (aa); } // aa should be invisible// { dg-error "" } .* | |
17 }; | |
18 |