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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 765 jeremybenn
// PR 133
2
 
3
// System.exit(0) appears to hang the program.
4
 
5
public class pr133 {
6
    public static void main(String argv[])
7
    {
8
        String name;
9
 
10
        if (argv.length == 0) {
11
            name = "Rocket J. Squirrel";
12
        } else {
13
            name = argv[0];
14
        }
15
 
16
        new pr133(name).identifySelf();
17
        System.out.println("goodbye");
18
 
19
        System.exit(0);
20
    }
21
 
22
    public pr133 (String name)
23
    {
24
        v_name = name;
25
    }
26
 
27
    public void identifySelf()
28
    {
29
        System.out.println("This is a pr133 instance named " + v_name);
30
        System.out.println("Leaving identifySelf()...");
31
    }
32
 
33
    private String v_name;
34
}

powered by: WebSVN 2.1.0

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