summaryrefslogtreecommitdiff
path: root/test/files/run
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run')
-rw-r--r--test/files/run/si5380.scala6
-rw-r--r--test/files/run/t5527.check1
-rw-r--r--test/files/run/t5527.scala2
-rw-r--r--test/files/run/t5530.check2
-rw-r--r--test/files/run/t5530.flags1
-rw-r--r--test/files/run/t5530.scala4
6 files changed, 15 insertions, 1 deletions
diff --git a/test/files/run/si5380.scala b/test/files/run/si5380.scala
new file mode 100644
index 0000000000..6083161a9b
--- /dev/null
+++ b/test/files/run/si5380.scala
@@ -0,0 +1,6 @@
+object Test {
+ def main(args: Array[String]) {
+ val f = () => return try { 1 } catch { case _ => 0 }
+ f()
+ }
+}
diff --git a/test/files/run/t5527.check b/test/files/run/t5527.check
index cae1a80199..bdd5ac8295 100644
--- a/test/files/run/t5527.check
+++ b/test/files/run/t5527.check
@@ -18,3 +18,4 @@ package <empty> {
}
}
}
+
diff --git a/test/files/run/t5527.scala b/test/files/run/t5527.scala
index 3badffde14..8280ee06ba 100644
--- a/test/files/run/t5527.scala
+++ b/test/files/run/t5527.scala
@@ -20,7 +20,7 @@ object Test extends DirectTest {
}
}
}
- """
+ """.trim
override def show(): Unit = {
// redirect err to out, for logging
diff --git a/test/files/run/t5530.check b/test/files/run/t5530.check
new file mode 100644
index 0000000000..1013e3356f
--- /dev/null
+++ b/test/files/run/t5530.check
@@ -0,0 +1,2 @@
+something like this
+ 7 now works!.
diff --git a/test/files/run/t5530.flags b/test/files/run/t5530.flags
new file mode 100644
index 0000000000..e1b37447c9
--- /dev/null
+++ b/test/files/run/t5530.flags
@@ -0,0 +1 @@
+-Xexperimental \ No newline at end of file
diff --git a/test/files/run/t5530.scala b/test/files/run/t5530.scala
new file mode 100644
index 0000000000..c8109a4004
--- /dev/null
+++ b/test/files/run/t5530.scala
@@ -0,0 +1,4 @@
+object Test extends App {
+ println(s"""something like this
+ ${3+4} now works!.""")
+} \ No newline at end of file