source:
trunk/src/gcc/libjava/testsuite/libjava.lang/indirect.java@
1392
| Last change on this file since 1392 was 2, checked in by , 23 years ago | |
|---|---|
|
|
| File size: 665 bytes | |
| Line | |
|---|---|
| 1 | // Class indirect |
| 2 | // Generated on Tue Nov 16 15:53:14 UTC 1999 |
| 3 | // Several indirection to enclosing class |
| 4 | |
| 5 | class indirect { |
| 6 | |
| 7 | private int foo; |
| 8 | |
| 9 | class indirect_inner { |
| 10 | class other { |
| 11 | class inner { |
| 12 | void test () { |
| 13 | int x = foo; |
| 14 | System.out.println ("x="+foo); |
| 15 | foo = 671; |
| 16 | } |
| 17 | } |
| 18 | } |
| 19 | |
| 20 | } |
| 21 | void foo () |
| 22 | { |
| 23 | foo = 670; |
| 24 | indirect_inner inn = this.new indirect_inner (); |
| 25 | this.new indirect_inner().new other().new inner ().test (); |
| 26 | System.out.println ("foo="+foo); |
| 27 | } |
| 28 | public static void main (String[] arg) |
| 29 | { |
| 30 | System.out.println ("Testing class `indirect'..."); |
| 31 | new indirect().foo (); |
| 32 | } |
| 33 | } |
Note:
See TracBrowser
for help on using the repository browser.
