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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 // { dg-do assemble }
kono
parents:
diff changeset
2 // GROUPS passed visibility
kono
parents:
diff changeset
3 // visibility file
kono
parents:
diff changeset
4 // From: Mark Rawling <Mark.Rawling@mel.dit.csiro.au>
kono
parents:
diff changeset
5 // Date: Wed, 30 Jun 93 15:28:34 +1000
kono
parents:
diff changeset
6 // Subject: member access rule bug
kono
parents:
diff changeset
7 // Message-ID: <9306300528.AA17185@coda.mel.dit.CSIRO.AU>
kono
parents:
diff changeset
8 struct a {
kono
parents:
diff changeset
9 int aa; // { dg-message "" } private
kono
parents:
diff changeset
10 };
kono
parents:
diff changeset
11
kono
parents:
diff changeset
12 class b : private a {
kono
parents:
diff changeset
13 };
kono
parents:
diff changeset
14
kono
parents:
diff changeset
15 class c : public b {
kono
parents:
diff changeset
16 int xx(void) { return (aa); } // aa should be invisible// { dg-error "" } .*
kono
parents:
diff changeset
17 };
kono
parents:
diff changeset
18