mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-23 07:49:06 +08:00
26 lines
365 B
Java
26 lines
365 B
Java
|
// 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)
|
||
|
{
|
||
|
}
|
||
|
}
|