summaryrefslogtreecommitdiff
path: root/test/files/run/justthrow.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/justthrow.scala')
-rw-r--r--test/files/run/justthrow.scala10
1 files changed, 10 insertions, 0 deletions
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");
+ }
+ }
+}