diff --git a/libjava/testsuite/ChangeLog b/libjava/testsuite/ChangeLog index 6baae49bc85..4cdcab2c34b 100644 --- a/libjava/testsuite/ChangeLog +++ b/libjava/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2001-12-20 Tom Tromey + + For PR java/4766: + * libjava.compile/PR4766.java: New file. + 2001-12-20 Andrew Haley * libjava.lang/FileHandleGcTest.out: New file. diff --git a/libjava/testsuite/libjava.compile/PR4766.java b/libjava/testsuite/libjava.compile/PR4766.java new file mode 100644 index 00000000000..840f66978df --- /dev/null +++ b/libjava/testsuite/libjava.compile/PR4766.java @@ -0,0 +1,25 @@ +// Test that bytecode generation works even when `finally' clause +// doesn't return normally. + +public class PR4766 +{ + public static int myfunction() + { + try + { + System.out.println ("hi"); + } + catch( Exception e ) + { + e.printStackTrace(); + } + finally + { + return 0; + } + } + + public static void main (String[] args) + { + } +}