From 44af59968783b4c962cb26a8d8e13a6597197a40 Mon Sep 17 00:00:00 2001 From: Lex Spoon Date: Fri, 27 Jan 2006 20:45:27 +0000 Subject: --- test/files/run/justthrow.check | 1 + test/files/run/justthrow.scala | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100644 test/files/run/justthrow.check create mode 100644 test/files/run/justthrow.scala (limited to 'test') diff --git a/test/files/run/justthrow.check b/test/files/run/justthrow.check new file mode 100644 index 0000000000..fb28403fcb --- /dev/null +++ b/test/files/run/justthrow.check @@ -0,0 +1 @@ +exception happened diff --git a/test/files/run/justthrow.scala b/test/files/run/justthrow.scala new file mode 100644 index 0000000000..0ff5b54e71 --- /dev/null +++ b/test/files/run/justthrow.scala @@ -0,0 +1,10 @@ +object Test { + def main(args:Array[String]): Unit = { + try { + throw new Error(); + } + catch { + case _ => Console.println("exception happened\n"); + } + } +} -- cgit v1.2.3