source:
trunk/gcc/libjava/testsuite/libjava.lang/direct_write.java@
3127
| Last change on this file since 3127 was 2, checked in by , 23 years ago | |
|---|---|
|
|
| File size: 478 bytes | |
| Line | |
|---|---|
| 1 | // Class direct_write |
| 2 | // Generated on Mon Nov 15 17:10:56 UTC 1999 |
| 3 | // |
| 4 | |
| 5 | class direct_write { |
| 6 | |
| 7 | int foo; |
| 8 | |
| 9 | class direct_write_inner { |
| 10 | void test () { |
| 11 | foo = 670; |
| 12 | } |
| 13 | } |
| 14 | |
| 15 | void foo () |
| 16 | { |
| 17 | foo = 650; |
| 18 | direct_write_inner inn = this.new direct_write_inner (); |
| 19 | inn.test (); |
| 20 | System.out.println ("foo="+foo); |
| 21 | } |
| 22 | public static void main (String[] arg) |
| 23 | { |
| 24 | System.out.println ("Testing class `direct_write'..."); |
| 25 | new direct_write().foo (); |
| 26 | } |
| 27 | } |
Note:
See TracBrowser
for help on using the repository browser.
