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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libjava/] [testsuite/] [libjava.lang/] [instinit.java] - Rev 778

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

// 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);
    }
}
 

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

powered by: WebSVN 2.1.0

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