gcc/testsuite/g++.old-deja/g++.law/visibility8.C
raw| 1 | // { dg-do assemble } |
| 2 | // GROUPS passed visibility |
| 3 | // visibility file |
| 4 | // From: [email protected] (Roland Knight ) |
| 5 | // Date: Thu, 29 Apr 1993 16:17:00 -0400 |
| 6 | // Subject: gcc 2.3.3 bug |
| 7 | // Message-ID: <[email protected] |
| 8 | class t1 { |
| 9 | protected: |
| 10 | int a; |
| 11 | }; |
| 12 | |
| 13 | |
| 14 | class t2 : private t1 // { dg-message "" } protected |
| 15 | { |
| 16 | public: |
| 17 | int b; |
| 18 | }; |
| 19 | |
| 20 | |
| 21 | class t3 : public t2 { |
| 22 | public: |
| 23 | int ttt(); |
| 24 | }; |
| 25 | |
| 26 | |
| 27 | int t3::ttt() { return a; }// { dg-error "" } .* |