aboutsummaryrefslogtreecommitdiff
path: root/libjava/testsuite/libjava.compile/PR4766.java
blob: 840f66978df8dc17fa5e408eec5a8991b48ae9d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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)
  {
  }
}