2000-02-07 Alexandre Petit-Bianco <apbianco@cygnus.com>
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 9 Feb 2000 20:49:34 +0000 (20:49 +0000)
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 9 Feb 2000 20:49:34 +0000 (20:49 +0000)
* libjava.lang/anonarray3.out: New file.
* libjava.lang/anonarray3.java: New file.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31871 138bc75d-0d04-0410-961f-82ee72b054a4

libjava/testsuite/ChangeLog
libjava/testsuite/libjava.lang/anonarray3.java [new file with mode: 0644]
libjava/testsuite/libjava.lang/anonarray3.out [new file with mode: 0644]

index 47cd81b..6cd4c11 100644 (file)
@@ -1,3 +1,8 @@
+2000-02-07  Alexandre Petit-Bianco  <apbianco@cygnus.com>
+
+       * libjava.lang/anonarray3.out: New file.
+       * libjava.lang/anonarray3.java: New file.
+
 2000-02-09  Tom Tromey  <tromey@cygnus.com>
 
        * libjava.compile/inner_priv.java: New file.
diff --git a/libjava/testsuite/libjava.lang/anonarray3.java b/libjava/testsuite/libjava.lang/anonarray3.java
new file mode 100644 (file)
index 0000000..264365b
--- /dev/null
@@ -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]);
+  }
+}
diff --git a/libjava/testsuite/libjava.lang/anonarray3.out b/libjava/testsuite/libjava.lang/anonarray3.out
new file mode 100644 (file)
index 0000000..8f92bfd
--- /dev/null
@@ -0,0 +1 @@
+35