source: trunk/gcc/libjava/testsuite/libjava.lang/pr133.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: 664 bytes
Line 
1// PR 133
2
3// System.exit(0) appears to hang the program.
4
5public 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}
Note: See TracBrowser for help on using the repository browser.