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
This commit is contained in:
parent
71600a4ae0
commit
d53cc71518
3 changed files with 19 additions and 0 deletions
13
libjava/testsuite/libjava.lang/anonarray3.java
Normal file
13
libjava/testsuite/libjava.lang/anonarray3.java
Normal file
|
@ -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]);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue