source: trunk/gcc/libjava/testsuite/libjava.compile/PR4766.java

Last change on this file was 2, checked in by bird, 22 years ago

Initial revision

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 365 bytes
Line 
1// Test that bytecode generation works even when `finally' clause
2// doesn't return normally.
3
4public class PR4766
5{
6 public static int myfunction()
7 {
8 try
9 {
10 System.out.println ("hi");
11 }
12 catch( Exception e )
13 {
14 e.printStackTrace();
15 }
16 finally
17 {
18 return 0;
19 }
20 }
21
22 public static void main (String[] args)
23 {
24 }
25}
Note: See TracBrowser for help on using the repository browser.