Signed-off-by: Tomek Grabiec <tgrab...@gmail.com> --- regression/jvm/IntegerArithmeticTest.java | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/regression/jvm/IntegerArithmeticTest.java b/regression/jvm/IntegerArithmeticTest.java index 4a8f785..92bdc7d 100644 --- a/regression/jvm/IntegerArithmeticTest.java +++ b/regression/jvm/IntegerArithmeticTest.java @@ -110,6 +110,16 @@ public class IntegerArithmeticTest extends TestCase { assertEquals( 3, div( 6, 2)); } + public static void testIntegerDivisionRegReg() { + int x = 3; + + try { + x = 1 / 0; + } catch (ArithmeticException e) {} + + assertEquals(3, x); + } + public static int div(int dividend, int divisor) { return dividend / divisor; } @@ -263,6 +273,7 @@ public class IntegerArithmeticTest extends TestCase { testIntegerMultiplication(); testIntegerMultiplicationOverflow(); testIntegerDivision(); + testIntegerDivisionRegReg(); testIntegerRemainder(); testIntegerNegation(); testIntegerNegationOverflow(); -- 1.6.0.6 ------------------------------------------------------------------------------ Are you an open source citizen? Join us for the Open Source Bridge conference! Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250. Need another reason to go? 24-hour hacker lounge. Register today! http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org _______________________________________________ Jatovm-devel mailing list Jatovm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jatovm-devel