Mercurial > hg > CbC > CbC_gcc
view 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 |
line wrap: on
line source
// { dg-do assemble } // 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; // { dg-message "" } private }; class b : private a { }; class c : public b { int xx(void) { return (aa); } // aa should be invisible// { dg-error "" } .* };