gcc/testsuite/g++.old-deja/g++.law/scope5.C
raw| 1 | // { dg-do assemble } |
| 2 | // GROUPS passed scoping |
| 3 | // local-class file |
| 4 | // From: [email protected] (Chris Schlaeger H Zivojnovic) |
| 5 | // Date: Tue, 10 Aug 93 16:50:33 +0200 |
| 6 | // Subject: Bug report |
| 7 | // Message-ID: <[email protected]> |
| 8 | |
| 9 | int main() |
| 10 | { |
| 11 | class foo |
| 12 | { |
| 13 | int i; |
| 14 | } ; |
| 15 | class bar |
| 16 | { |
| 17 | public: |
| 18 | bar() { y = 0; } |
| 19 | void f() { foo x; } |
| 20 | private: |
| 21 | int y; |
| 22 | } ; |
| 23 | |
| 24 | bar c; |
| 25 | } |