From 7f63832946fdea0fedeb23b8c725583a70040c6f Mon Sep 17 00:00:00 2001 From: mihaylov Date: Thu, 7 Oct 2004 12:26:18 +0000 Subject: - [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 --- test/files/run/bugs.scala | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'test') 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 @@ -5,6 +5,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 @@ -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)); -- cgit v1.2.3