summaryrefslogtreecommitdiff
path: root/test/files/run
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run')
-rw-r--r--test/files/run/exc.scala10
-rw-r--r--test/files/run/exc1.scala10
-rw-r--r--test/files/run/exc2.scala12
3 files changed, 32 insertions, 0 deletions
diff --git a/test/files/run/exc.scala b/test/files/run/exc.scala
new file mode 100644
index 0000000000..4c7db29226
--- /dev/null
+++ b/test/files/run/exc.scala
@@ -0,0 +1,10 @@
+object Test extends Application {
+ def foo() = {
+ while (true) {
+ try {
+ } catch {
+ case ex: Exception =>
+ }
+ }
+ }
+}
diff --git a/test/files/run/exc1.scala b/test/files/run/exc1.scala
new file mode 100644
index 0000000000..24856247bf
--- /dev/null
+++ b/test/files/run/exc1.scala
@@ -0,0 +1,10 @@
+object Test extends Application {
+ def foo(): Unit = {
+ while (true) {
+ try {
+ } catch {
+ case ex: Exception =>
+ }
+ }
+ }
+}
diff --git a/test/files/run/exc2.scala b/test/files/run/exc2.scala
new file mode 100644
index 0000000000..00a269a364
--- /dev/null
+++ b/test/files/run/exc2.scala
@@ -0,0 +1,12 @@
+object Test extends Application {
+ def foo() = {
+ while (true) {
+ try {
+ Console.println("foo")
+ } catch {
+ case ex: Exception =>
+ Console.println("bar")
+ }
+ }
+ }
+}