Patch: anonymous array test
Tom Tromey
tromey@cygnus.com
Wed Feb 9 12:49:00 GMT 2000
I'm committing this patch, which is another anonymous array test from
Alex.
2000-02-07 Alexandre Petit-Bianco <apbianco@cygnus.com>
* libjava.lang/anonarray3.out: New file.
* libjava.lang/anonarray3.java: New file.
Tom
Index: libjava.lang/anonarray3.java
===================================================================
RCS file: anonarray3.java
diff -N anonarray3.java
--- /dev/null Tue May 5 13:32:27 1998
+++ anonarray3.java Wed Feb 9 12:47:41 2000
@@ -0,0 +1,13 @@
+// Class anonarray3
+// Generated on Tue Feb 8 19:18:10 PST 2000
+//
+
+class anonarray3 {
+ private static final int[] foo (int x) {
+ return new int[] { x+1 };
+ }
+ public static void main (String[] arg)
+ {
+ System.out.println (foo (34)[0]);
+ }
+}
Index: libjava.lang/anonarray3.out
===================================================================
RCS file: anonarray3.out
diff -N anonarray3.out
--- /dev/null Tue May 5 13:32:27 1998
+++ anonarray3.out Wed Feb 9 12:47:41 2000
@@ -0,0 +1 @@
+35
More information about the Java-patches
mailing list