For PR java/4766:
* libjava.compile/PR4766.java: New file. From-SVN: r48209
This commit is contained in:
parent
56b8325e5b
commit
e6a8345b03
2 changed files with 30 additions and 0 deletions
25
libjava/testsuite/libjava.compile/PR4766.java
Normal file
25
libjava/testsuite/libjava.compile/PR4766.java
Normal file
|
@ -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)
|
||||
{
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue