From 81309e7e0fb568b3ba12df9631c607232b68960b Mon Sep 17 00:00:00 2001 From: Adriaan Moors Date: Mon, 19 May 2014 12:56:12 +0200 Subject: Revert "SI-8601 Don't treat int/long division, or arraylength, as dead-code" This reverts commit ee611cd76c29fedd416162e482c7ab3f15b831ca. --- test/files/run/t8601.scala | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 test/files/run/t8601.scala (limited to 'test/files/run/t8601.scala') diff --git a/test/files/run/t8601.scala b/test/files/run/t8601.scala deleted file mode 100644 index e1afc23cc4..0000000000 --- a/test/files/run/t8601.scala +++ /dev/null @@ -1,15 +0,0 @@ -object Test { - def idiv(x: Int): Unit = x / 0 - def ldiv(x: Long): Unit = x / 0 - def irem(x: Int): Unit = x % 0 - def lrem(x: Long): Unit = x % 0 - - def check(x: => Any) = try { x; sys.error("failed to throw divide by zero!") } catch { case _: ArithmeticException => } - - def main(args: Array[String]) { - check(idiv(1)) - check(ldiv(1L)) - check(irem(1)) - check(lrem(1L)) - } -} -- cgit v1.2.3