summaryrefslogtreecommitdiff
path: root/libjava/testsuite/libjava.lang/instinit.java
blob: a72dc10db122fc5a7f871f801ff70366d8474689 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Class instinit
// Generated on Wed Feb  2 12:31:16 PST 2000
// Simple instance initializer test case.

class instinit {

    String buffer = "No Oink! Oink!";

    /* Instance initializer */
    {
        System.out.println ("Oinking...");
    }
    {
        buffer = "Oink! Oink!";
    }
  
    public static void main (String[] arg)
    {
        System.out.println ("Testing class `instinit'...");
        System.out.println (new instinit ().buffer);
    }
}