summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiguel Garcia <miguelalfredo.garcia@epfl.ch>2012-08-06 21:37:43 +0200
committerMiguel Garcia <miguelalfredo.garcia@epfl.ch>2012-08-06 21:37:43 +0200
commitc2bb028deb7a03acb5dcf2fa905a466fef8be1a6 (patch)
tree78b1a1fba5de76a2a4c3bdde476b0d1de0f5bfe2
parent7039f43a50169d2d5e4b178fe373f38578291243 (diff)
downloadscala-c2bb028deb7a03acb5dcf2fa905a466fef8be1a6.tar.gz
scala-c2bb028deb7a03acb5dcf2fa905a466fef8be1a6.tar.bz2
scala-c2bb028deb7a03acb5dcf2fa905a466fef8be1a6.zip
test case for SI-6102
-rw-r--r--test/files/run/t6102.check1
-rw-r--r--test/files/run/t6102.flags1
-rw-r--r--test/files/run/t6102.scala13
3 files changed, 15 insertions, 0 deletions
diff --git a/test/files/run/t6102.check b/test/files/run/t6102.check
new file mode 100644
index 0000000000..b6fc4c620b
--- /dev/null
+++ b/test/files/run/t6102.check
@@ -0,0 +1 @@
+hello \ No newline at end of file
diff --git a/test/files/run/t6102.flags b/test/files/run/t6102.flags
new file mode 100644
index 0000000000..e35535c8ea
--- /dev/null
+++ b/test/files/run/t6102.flags
@@ -0,0 +1 @@
+ -Ydead-code
diff --git a/test/files/run/t6102.scala b/test/files/run/t6102.scala
new file mode 100644
index 0000000000..53584055bb
--- /dev/null
+++ b/test/files/run/t6102.scala
@@ -0,0 +1,13 @@
+// SI-6102 Wrong bytecode in lazyval + no-op finally clause
+
+object Test {
+
+ def main(args: Array[String]) {
+ try {
+ val x = 3
+ } finally {
+ print("hello")
+ }
+ }
+}
+