source:
trunk/src/gcc/libjava/testsuite/libjava.lang/instinit.java@
1392
| Last change on this file since 1392 was 2, checked in by , 23 years ago | |
|---|---|
|
|
| File size: 466 bytes | |
| Line | |
|---|---|
| 1 | // Class instinit |
| 2 | // Generated on Wed Feb 2 12:31:16 PST 2000 |
| 3 | // Simple instance initializer test case. |
| 4 | |
| 5 | class instinit { |
| 6 | |
| 7 | String buffer = "No Oink! Oink!"; |
| 8 | |
| 9 | /* Instance initializer */ |
| 10 | { |
| 11 | System.out.println ("Oinking..."); |
| 12 | } |
| 13 | { |
| 14 | buffer = "Oink! Oink!"; |
| 15 | } |
| 16 | |
| 17 | public static void main (String[] arg) |
| 18 | { |
| 19 | System.out.println ("Testing class `instinit'..."); |
| 20 | System.out.println (new instinit ().buffer); |
| 21 | } |
| 22 | } |
Note:
See TracBrowser
for help on using the repository browser.
