gcc/testsuite/g++.old-deja/g++.law/visibility12.C
raw| 1 | // { dg-do assemble } |
| 2 | // GROUPS passed visibility |
| 3 | // visibility file |
| 4 | // From: Mark Rawling <[email protected]> |
| 5 | // Date: Wed, 30 Jun 93 15:28:34 +1000 |
| 6 | // Subject: member access rule bug |
| 7 | // Message-ID: <[email protected]> |
| 8 | struct a { |
| 9 | int aa; |
| 10 | }; |
| 11 | |
| 12 | class b : private a // { dg-message "" } private |
| 13 | { |
| 14 | }; |
| 15 | |
| 16 | class c : public b { |
| 17 | int xx(void) { return (aa); } // aa should be invisible// { dg-error "" } .* |
| 18 | }; |
| 19 |