summaryrefslogtreecommitdiff
path: root/test/pending/run
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2006-04-25 14:01:59 +0000
committerMartin Odersky <odersky@gmail.com>2006-04-25 14:01:59 +0000
commit88cd71a283f25b20414b1a22b9fded83692ffc14 (patch)
tree921d9a72ae56ac70d11ba1a58ee274cb8808a60d /test/pending/run
parent8e1da29a68f7d494a89a1922e3b30e39b245da63 (diff)
downloadscala-88cd71a283f25b20414b1a22b9fded83692ffc14.tar.gz
scala-88cd71a283f25b20414b1a22b9fded83692ffc14.tar.bz2
scala-88cd71a283f25b20414b1a22b9fded83692ffc14.zip
Diffstat (limited to 'test/pending/run')
-rwxr-xr-xtest/pending/run/exc.scala10
-rwxr-xr-xtest/pending/run/exc1.scala10
-rwxr-xr-xtest/pending/run/exc2.scala12
3 files changed, 32 insertions, 0 deletions
diff --git a/test/pending/run/exc.scala b/test/pending/run/exc.scala
new file mode 100755
index 0000000000..26f80412c0
--- /dev/null
+++ b/test/pending/run/exc.scala
@@ -0,0 +1,10 @@
+object exc1 extends Application {
+ def foo() = {
+ while (true) {
+ try {
+ } catch {
+ case ex: Exception =>
+ }
+ }
+ }
+}
diff --git a/test/pending/run/exc1.scala b/test/pending/run/exc1.scala
new file mode 100755
index 0000000000..48fc084dda
--- /dev/null
+++ b/test/pending/run/exc1.scala
@@ -0,0 +1,10 @@
+object exc1 extends Application {
+ def foo(): unit = {
+ while (true) {
+ try {
+ } catch {
+ case ex: Exception =>
+ }
+ }
+ }
+}
diff --git a/test/pending/run/exc2.scala b/test/pending/run/exc2.scala
new file mode 100755
index 0000000000..8adf9b4a37
--- /dev/null
+++ b/test/pending/run/exc2.scala
@@ -0,0 +1,12 @@
+object exc2 extends Application {
+ def foo() = {
+ while (true) {
+ try {
+ Console.println("foo")
+ } catch {
+ case ex: Exception =>
+ Console.println("bar")
+ }
+ }
+ }
+}