Merge from mainline (167278:168000).
[official-gcc/graphite-test-results.git] / gcc / testsuite / g++.old-deja / g++.law / visibility8.C
blob17a3cf8c08484e242b8a72b949ae8dedb86a9fd7
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-error "" } protected
14 class t2 : private t1 {
15 public:
16     int b;
20 class t3 : public t2 {
21 public:
22     int ttt();
26 int t3::ttt() { return a; }// { dg-error "" } .*