summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authormihaylov <mihaylov@epfl.ch>2005-10-03 22:05:47 +0000
committermihaylov <mihaylov@epfl.ch>2005-10-03 22:05:47 +0000
commit5c8e9c28ec464dc4f5a42beaa421369f61b4403c (patch)
treec7bfdb913408e10bdb81e5345bb3aa282e72a3b7 /test
parent47278930d16096b978a6eb899934ff66db51c465 (diff)
downloadscala-5c8e9c28ec464dc4f5a42beaa421369f61b4403c.tar.gz
scala-5c8e9c28ec464dc4f5a42beaa421369f61b4403c.tar.bz2
scala-5c8e9c28ec464dc4f5a42beaa421369f61b4403c.zip
*** empty log message ***
Diffstat (limited to 'test')
-rwxr-xr-xtest/files/run/tailcalls-msil.check92
-rw-r--r--test/files/run/tailcalls.scala3
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