diff options
author | Lukas Rytz <lukas.rytz@typesafe.com> | 2014-10-06 13:26:01 +0200 |
---|---|---|
committer | Lukas Rytz <lukas.rytz@typesafe.com> | 2014-10-06 13:26:01 +0200 |
commit | bfde67dbb0790c4b853970dd3700ccbc9a88c6d7 (patch) | |
tree | 473846612ec1067a37cce55d3c4db0dde209fee1 /test/files | |
parent | 7b2c3cb8bb0f5f96f3182f551eb82cb1c59d460c (diff) | |
parent | 922a9fc919169ad27f27b25cb48450b368d9329f (diff) | |
download | scala-bfde67dbb0790c4b853970dd3700ccbc9a88c6d7.tar.gz scala-bfde67dbb0790c4b853970dd3700ccbc9a88c6d7.tar.bz2 scala-bfde67dbb0790c4b853970dd3700ccbc9a88c6d7.zip |
Merge pull request #3982 from retronym/ticket/8845
SI-8845 Control flow pot-pourri crashes GenASM, but not -BCode
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/run/t8845.flags | 1 | ||||
-rw-r--r-- | test/files/run/t8845.scala | 17 |
2 files changed, 18 insertions, 0 deletions
diff --git a/test/files/run/t8845.flags b/test/files/run/t8845.flags new file mode 100644 index 0000000000..aada25f80d --- /dev/null +++ b/test/files/run/t8845.flags @@ -0,0 +1 @@ +-Ybackend:GenBCode -Ynooptimize diff --git a/test/files/run/t8845.scala b/test/files/run/t8845.scala new file mode 100644 index 0000000000..8ccdbdadc7 --- /dev/null +++ b/test/files/run/t8845.scala @@ -0,0 +1,17 @@ +// crashes compiler under GenASM, works under GenBCode. +object Interpreter { + def mkDataProp(i: Int) = i + def break(n: Int): Unit = + try { + n match { + case _ => + val newDesc = mkDataProp(n) + n match { case _ => return } + } + } catch { case e: Throwable => } + finally { } +} + +object Test extends App { + Interpreter.break(0) +} |