summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorLex Spoon <lex@lexspoon.org>2006-01-27 20:45:27 +0000
committerLex Spoon <lex@lexspoon.org>2006-01-27 20:45:27 +0000
commit44af59968783b4c962cb26a8d8e13a6597197a40 (patch)
tree466dc13306211d16ba388f14a2d8df19b6cdbf32 /test
parentc717ffa0fdfcd72b1cc5ebc9b28e91e41442aad3 (diff)
downloadscala-44af59968783b4c962cb26a8d8e13a6597197a40.tar.gz
scala-44af59968783b4c962cb26a8d8e13a6597197a40.tar.bz2
scala-44af59968783b4c962cb26a8d8e13a6597197a40.zip
Diffstat (limited to 'test')
-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");
+ }
+ }
+}