diff options
author | Alexandre Petit-Bianco <apbianco@cygnus.com> | 2000-02-09 20:49:34 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 2000-02-09 20:49:34 +0000 |
commit | d53cc71518928c16354316fbd632e0a8679f6632 (patch) | |
tree | 1deebb735762ac582e14ff28e282e05bdbd6e6fe /libjava/testsuite/libjava.lang/anonarray3.java | |
parent | 71600a4ae0a31aee8f1471a75b41231f902633ce (diff) | |
download | gcc-d53cc71518928c16354316fbd632e0a8679f6632.zip gcc-d53cc71518928c16354316fbd632e0a8679f6632.tar.gz gcc-d53cc71518928c16354316fbd632e0a8679f6632.tar.bz2 |
anonarray3.out: New file.
2000-02-07 Alexandre Petit-Bianco <apbianco@cygnus.com>
* libjava.lang/anonarray3.out: New file.
* libjava.lang/anonarray3.java: New file.
From-SVN: r31871
Diffstat (limited to 'libjava/testsuite/libjava.lang/anonarray3.java')
-rw-r--r-- | libjava/testsuite/libjava.lang/anonarray3.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libjava/testsuite/libjava.lang/anonarray3.java b/libjava/testsuite/libjava.lang/anonarray3.java new file mode 100644 index 0000000..264365b --- /dev/null +++ b/libjava/testsuite/libjava.lang/anonarray3.java @@ -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]); + } +} |