Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/g++.old-deja/g++.law/visibility8.C @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
1 // { dg-do assemble } | |
2 // GROUPS passed visibility | |
3 // visibility file | |
4 // From: roland@jts.com (Roland Knight ) | |
5 // Date: Thu, 29 Apr 1993 16:17:00 -0400 | |
6 // Subject: gcc 2.3.3 bug | |
7 // Message-ID: <m0nof3E-0021ifC@jts.com | |
8 class t1 { | |
9 protected: | |
10 int a; // { dg-message "" } protected | |
11 }; | |
12 | |
13 | |
14 class t2 : private t1 { | |
15 public: | |
16 int b; | |
17 }; | |
18 | |
19 | |
20 class t3 : public t2 { | |
21 public: | |
22 int ttt(); | |
23 }; | |
24 | |
25 | |
26 int t3::ttt() { return a; }// { dg-error "" } .* |