2007-02-13 Andrew Haley <aph@redhat.com>
* testsuite/libjava.lang/Divide_2.out * testsuite/libjava.lang/Divide_2.java: New test. From-SVN: r121887
This commit is contained in:
committed by
Andrew Haley
parent
138ae41e4d
commit
b3a00d65b8
@@ -0,0 +1,20 @@
|
||||
public class Divide_2
|
||||
{
|
||||
static void poo()
|
||||
{
|
||||
int n = 4/0;
|
||||
}
|
||||
public static void main(String[] argv)
|
||||
{
|
||||
try
|
||||
{
|
||||
poo();
|
||||
}
|
||||
catch (ArithmeticException _)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
throw new RuntimeException();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user