From: Tom Tromey Date: Wed, 30 May 2001 15:23:23 +0000 (+0000) Subject: invokethrow.out: New file. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1de16a5cb15fb64186171b6d79c3322f21745343;p=gcc.git invokethrow.out: New file. * libjava.lang/invokethrow.out: New file. * libjava.lang/invokethrow.java: New file. From-SVN: r42711 --- diff --git a/libjava/testsuite/ChangeLog b/libjava/testsuite/ChangeLog index c172cfba476..b149ea6efb1 100644 --- a/libjava/testsuite/ChangeLog +++ b/libjava/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2001-05-30 Tom Tromey + + * libjava.lang/invokethrow.out: New file. + * libjava.lang/invokethrow.java: New file. + 2001-05-03 Tom Tromey * 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 index 00000000000..df7262679bb --- /dev/null +++ b/libjava/testsuite/libjava.lang/invokethrow.java @@ -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 index 00000000000..32aad8c3538 --- /dev/null +++ b/libjava/testsuite/libjava.lang/invokethrow.out @@ -0,0 +1 @@ +hi!