invokethrow.out: New file.
authorTom Tromey <tromey@redhat.com>
Wed, 30 May 2001 15:23:23 +0000 (15:23 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Wed, 30 May 2001 15:23:23 +0000 (15:23 +0000)
* libjava.lang/invokethrow.out: New file.
* libjava.lang/invokethrow.java: New file.

From-SVN: r42711

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

index c172cfba476902e30859f6d32b7674add03ecb0b..b149ea6efb1d4ec566d509e0c53ad2c8072defd8 100644 (file)
@@ -1,3 +1,8 @@
+2001-05-30  Tom Tromey  <tromey@redhat.com>
+
+       * libjava.lang/invokethrow.out: New file.
+       * libjava.lang/invokethrow.java: New file.
+
 2001-05-03  Tom Tromey  <tromey@redhat.com>
 
        * libjava.lang/Thread_Wait_Interrupt.xfail: New file.
diff --git a/libjava/testsuite/libjava.lang/invokethrow.java b/libjava/testsuite/libjava.lang/invokethrow.java
new file mode 100644 (file)
index 0000000..df72626
--- /dev/null
@@ -0,0 +1,29 @@
+// Test a `throw' across a libffi call.
+
+import java.lang.reflect.*;
+
+public class invokethrow
+{
+  public static void doit () throws Throwable
+  {
+    throw new Throwable ("hi!");
+  }
+
+  public static void main (String[] args)
+  {
+    Class k = invokethrow.class;
+    try
+      {
+       Class[] noargs = new Class[0];
+       Method m = k.getMethod ("doit", noargs);
+       m.invoke (null, null);
+      }
+    catch (InvocationTargetException x1)
+      {
+       System.out.println (x1.getTargetException ().getMessage ());
+      }
+    catch (Throwable _)
+      {
+      }
+  }
+}
diff --git a/libjava/testsuite/libjava.lang/invokethrow.out b/libjava/testsuite/libjava.lang/invokethrow.out
new file mode 100644 (file)
index 0000000..32aad8c
--- /dev/null
@@ -0,0 +1 @@
+hi!