This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

New test case for sibcalls


2003-05-21  Andrew Haley  <aph@redhat.com>

	* libjava.lang/sibcall.java: New file.
	* libjava.lang/sibcall.out: New file.

Index: sibcall.java
===================================================================
RCS file: sibcall.java
diff -N sibcall.java
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ sibcall.java        21 May 2003 16:28:09 -0000
@@ -0,0 +1,31 @@
+public class sibcall
+{
+  class foo
+  {
+    foo()
+    {
+      SecurityManager s = new SecurityManager();
+      Class c[] = s.getClassContext();
+      for (int i=0; i<4; i++)
+       System.out.println(c[i]);
+    }
+  }
+  class bar
+  {
+    bar()
+    {
+      new foo();
+    }
+  }
+  class baz
+  {
+    baz()
+    {
+      new bar();
+    }
+  }
+  static public void main(String s[])
+  {
+    new baz();
+  }
+}
Index: sibcall.out
===================================================================
RCS file: sibcall.out
diff -N sibcall.out
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ sibcall.out 21 May 2003 16:28:09 -0000
@@ -0,0 +1,4 @@
+class sibcall$foo
+class sibcall$bar
+class sibcall$baz
+class sibcall


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]