source: trunk/gcc/libjava/testsuite/libjava.lang/instinit.java

Last change on this file was 2, checked in by bird, 22 years ago

Initial revision

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
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
5class 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.