OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libjava/] [testsuite/] [libjava.lang/] [instinit.java] - Blame information for rev 772

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 765 jeremybenn
// 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
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.