summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/files/run/justthrow.check1
-rw-r--r--test/files/run/justthrow.scala10
2 files changed, 11 insertions, 0 deletions
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");
+ }
+ }
+}