diff options
author | Tom Tromey <tromey@redhat.com> | 2001-12-20 18:05:20 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 2001-12-20 18:05:20 +0000 |
commit | e6a8345b03643aebbcba7188effd96340f2a1fd9 (patch) | |
tree | 571d6ee7f4281db9917b7f98f8c855494e6aff86 /libjava/testsuite/libjava.compile/PR4766.java | |
parent | 56b8325e5b1c5237547295a1d1b58bba91adac5a (diff) | |
download | gcc-e6a8345b03643aebbcba7188effd96340f2a1fd9.zip gcc-e6a8345b03643aebbcba7188effd96340f2a1fd9.tar.gz gcc-e6a8345b03643aebbcba7188effd96340f2a1fd9.tar.bz2 |
For PR java/4766:
* libjava.compile/PR4766.java: New file.
From-SVN: r48209
Diffstat (limited to 'libjava/testsuite/libjava.compile/PR4766.java')
-rw-r--r-- | libjava/testsuite/libjava.compile/PR4766.java | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/libjava/testsuite/libjava.compile/PR4766.java b/libjava/testsuite/libjava.compile/PR4766.java new file mode 100644 index 0000000..840f669 --- /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) + { + } +} |