]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Invoke_2.java: New file.
authorAndrew Haley <aph@cygnus.com>
Wed, 12 May 1999 11:17:09 +0000 (11:17 +0000)
committerAndrew Haley <aph@gcc.gnu.org>
Wed, 12 May 1999 11:17:09 +0000 (11:17 +0000)
1999-05-12  Andrew Haley  <aph@cygnus.com>
        * libjava.lang/Invoke_2.java: New file.

From-SVN: r26900

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

index 4015384ba4792ab069e17c4ebb66c6b510c79e37..ef6b8dc5a97050837d7fc622ea36529a963ad812 100644 (file)
@@ -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.
diff --git a/libjava/testsuite/libjava.lang/Invoke_2.java b/libjava/testsuite/libjava.lang/Invoke_2.java
new file mode 100644 (file)
index 0000000..a2d1407
--- /dev/null
@@ -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;
+  }
+}
+
diff --git a/libjava/testsuite/libjava.lang/Invoke_2.out b/libjava/testsuite/libjava.lang/Invoke_2.out
new file mode 100644 (file)
index 0000000..3950155
--- /dev/null
@@ -0,0 +1 @@
+99 33