diff options
-rwxr-xr-x | test/files/run/tailcalls-msil.check | 92 | ||||
-rw-r--r-- | test/files/run/tailcalls.scala | 3 |
2 files changed, 47 insertions, 48 deletions
diff --git a/test/files/run/tailcalls-msil.check b/test/files/run/tailcalls-msil.check index ce8a651d0f..b44e502e1b 100755 --- a/test/files/run/tailcalls-msil.check +++ b/test/files/run/tailcalls-msil.check @@ -1,46 +1,46 @@ -test Object .f was successful
-test Final .f was successful
-test Class .f raised exception System.StackOverflowException: Exception of type System.StackOverflowException was thrown.
-test SubClass .f was successful
-test Sealed .f raised exception System.StackOverflowException: Exception of type System.StackOverflowException was thrown.
-test SubSealed.f was successful
-
-test O .f was successful
-test c .f was successful
-test O.O .f was successful
-test O.c .f was successful
-test c.O .f was successful
-test c.c .f was successful
-test O.O.O .f was successful
-test O.O.c .f was successful
-test O.c.O .f was successful
-test O.c.c .f was successful
-test c.O.O .f was successful
-test c.O.c .f was successful
-test c.c.O .f was successful
-test c.c.c .f was successful
-test O.O.O.O.f was successful
-test O.O.O.c.f was successful
-test O.O.c.O.f was successful
-test O.O.c.c.f was successful
-test O.c.O.O.f was successful
-test O.c.O.c.f was successful
-test O.c.c.O.f was successful
-test O.c.c.c.f was successful
-test c.O.O.O.f was successful
-test c.O.O.c.f was successful
-test c.O.c.O.f was successful
-test c.O.c.c.f was successful
-test c.c.O.O.f was successful
-test c.c.O.c.f was successful
-test c.c.c.O.f was successful
-test c.c.c.c.f was successful
-
-test TailCall.f1 was successful
-test TailCall.f2 was successful
-test TailCall.f3 was successful
-test TailCall.g1 was successful
-test TailCall.g2 was successful
-test TailCall.g3 was successful
-test TailCall.h1 was successful
-
+test Object .f was successful +test Final .f was successful +test Class .f raised exception System.StackOverflowException: Exception of type System.StackOverflowException was thrown. +test SubClass .f was successful +test Sealed .f raised exception System.StackOverflowException: Exception of type System.StackOverflowException was thrown. +test SubSealed.f was successful + +test O .f was successful +test c .f was successful +test O.O .f was successful +test O.c .f was successful +test c.O .f was successful +test c.c .f was successful +test O.O.O .f was successful +test O.O.c .f was successful +test O.c.O .f was successful +test O.c.c .f was successful +test c.O.O .f was successful +test c.O.c .f was successful +test c.c.O .f was successful +test c.c.c .f was successful +test O.O.O.O.f was successful +test O.O.O.c.f was successful +test O.O.c.O.f was successful +test O.O.c.c.f was successful +test O.c.O.O.f was successful +test O.c.O.c.f was successful +test O.c.c.O.f was successful +test O.c.c.c.f was successful +test c.O.O.O.f was successful +test c.O.O.c.f was successful +test c.O.c.O.f was successful +test c.O.c.c.f was successful +test c.c.O.O.f was successful +test c.c.O.c.f was successful +test c.c.c.O.f was successful +test c.c.c.c.f was successful + +test TailCall.f1 was successful +test TailCall.f2 was successful +test TailCall.f3 was successful +test TailCall.g1 was successful +test TailCall.g2 was successful +test TailCall.g3 was successful +test TailCall.h1 was successful + diff --git a/test/files/run/tailcalls.scala b/test/files/run/tailcalls.scala index ba4c199584..3279e6bf64 100644 --- a/test/files/run/tailcalls.scala +++ b/test/files/run/tailcalls.scala @@ -212,8 +212,7 @@ object Test { while (!stop) { try { calibrator.f(n, n); - //if (n >= Integer.MAX_VALUE / 2) error("calibration failure"); - if (n >= scala.runtime.compat.Platform.MAX_INT / 2) error("calibration failure"); + if (n >= scala.runtime.compat.Math.MAX_INT / 2) error("calibration failure"); n = 2 * n; } catch { case exception: StackOverflowError => stop = true |