summaryrefslogtreecommitdiff
path: root/test/files/run/t8601.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/t8601.scala')
-rw-r--r--test/files/run/t8601.scala15
1 files changed, 0 insertions, 15 deletions
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))
- }
-}