summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authormihaylov <mihaylov@epfl.ch>2004-10-07 12:26:18 +0000
committermihaylov <mihaylov@epfl.ch>2004-10-07 12:26:18 +0000
commit7f63832946fdea0fedeb23b8c725583a70040c6f (patch)
tree05fa6624ce61866ff01573a6ca61e9d36ff734b3 /test
parent12905b5fc0ead0a41d6689cca15c7294cde2c62f (diff)
downloadscala-7f63832946fdea0fedeb23b8c725583a70040c6f.tar.gz
scala-7f63832946fdea0fedeb23b8c725583a70040c6f.tar.bz2
scala-7f63832946fdea0fedeb23b8c725583a70040c6f.zip
- [MSIL] added object TestMain that serves as a...
- [MSIL] added object TestMain that serves as an entry point with the - MSIL backend properly handle command line arguments
Diffstat (limited to 'test')
-rw-r--r--test/files/run/bugs.scala13
1 files changed, 12 insertions, 1 deletions
diff --git a/test/files/run/bugs.scala b/test/files/run/bugs.scala
index b0a26d92e3..f98146ba46 100644
--- a/test/files/run/bugs.scala
+++ b/test/files/run/bugs.scala
@@ -6,6 +6,15 @@
import java.lang.System; // to avoid name clash with .NET's library
//############################################################################
+// serves as an entry point with the MSIL backend
+
+object TestMain {
+ def main(args: Array[String]): Unit = {
+ Test.main(args);
+ }
+}
+
+//############################################################################
// Bug 98
object Bug98Test {
@@ -413,6 +422,7 @@ object Test {
val name: String = Thread.currentThread().getName();
System.out.print("Exception in thread \"" + name + "\" ");
exception.printStackTrace();
+ //Console.println(exception.StackTrace); // with -target:msil
System.out.println();
errors = errors + 1;
}
@@ -442,7 +452,8 @@ object Test {
test(250, Bug250Test.main(args));
test(257, Bug257Test.main(args));
test(266, Bug266Test.main(args));
- test(281, if (args(0) == "int") () else Bug281Test.main(args)); // !!!
+ test(281, if (args.length > 0 && args(0) == "int") ()
+ else Bug281Test.main(args)); // !!!
test(316, Bug316Test.main(args));
test(328, Bug328Test.main(args));