Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.old-deja/g++.law/access3.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 access | |
3 // unsorted.2 file | |
4 // Date: Sat, 6 Jun 1992 18:23:03 -0400 | |
5 // From: Brendan Kehoe <brendan@cs.widener.edu> | |
6 // Message-Id: <199206062223.AA22653@betty.cs.widener.edu> | |
7 // Subject: bug with access control to member functions | |
8 | |
9 class X { | |
10 void g (int); // { dg-message "" } is private | |
11 public: | |
12 void g (double); | |
13 }; | |
14 | |
15 class Y : public X { void f() { g (1); } };// { dg-error "" } | |
16 |