Invoke_2.java: New file.
1999-05-12 Andrew Haley <aph@cygnus.com> * libjava.lang/Invoke_2.java: New file. From-SVN: r26900
This commit is contained in:
parent
d960c105fc
commit
3b551e09f1
3 changed files with 25 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
1999-05-12 Andrew Haley <aph@cygnus.com>
|
||||
|
||||
* libjava.lang/Invoke_2.java: New file.
|
||||
|
||||
1999-05-03 Tom Tromey <tromey@cygnus.com>
|
||||
|
||||
* lib/libjava.exp (libjava_arguments): Don't use -nodefaultlibs.
|
||||
|
|
20
libjava/testsuite/libjava.lang/Invoke_2.java
Normal file
20
libjava/testsuite/libjava.lang/Invoke_2.java
Normal file
|
@ -0,0 +1,20 @@
|
|||
public class Invoke_2
|
||||
{
|
||||
static int s;
|
||||
|
||||
public static void foo (int a, int b)
|
||||
{
|
||||
System.out.println(a + " " + b);
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
foo (bar(), s);
|
||||
}
|
||||
|
||||
public static int bar()
|
||||
{
|
||||
s = 33;
|
||||
return 99;
|
||||
}
|
||||
}
|
||||
|
1
libjava/testsuite/libjava.lang/Invoke_2.out
Normal file
1
libjava/testsuite/libjava.lang/Invoke_2.out
Normal file
|
@ -0,0 +1 @@
|
|||
99 33
|
Loading…
Add table
Add a link
Reference in a new issue