diff options
author | Iulian Dragos <jaguarul@gmail.com> | 2007-09-13 10:21:22 +0000 |
---|---|---|
committer | Iulian Dragos <jaguarul@gmail.com> | 2007-09-13 10:21:22 +0000 |
commit | 6900f59041b0077620a09f71f4378a1cf96b3066 (patch) | |
tree | 28e76730f87cf47c62f4101fbd74759e7e0d7d67 /test | |
parent | c1ce17b26427f97dacea8d36eefcd5b604dfe89b (diff) | |
download | scala-6900f59041b0077620a09f71f4378a1cf96b3066.tar.gz scala-6900f59041b0077620a09f71f4378a1cf96b3066.tar.bz2 scala-6900f59041b0077620a09f71f4378a1cf96b3066.zip |
Fixed dead code elimination phase:
- better handling of 'dead' DROP
- fixed computeCompensations (VerifyErrors in corner cases)
- fixed generation of LOAD_EXCEPTION on all exceptional paths, when optimizations enabled
Diffstat (limited to 'test')
-rw-r--r-- | test/files/run/exceptions-2.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/files/run/exceptions-2.scala b/test/files/run/exceptions-2.scala index 3802297d84..d76a52f5e8 100644 --- a/test/files/run/exceptions-2.scala +++ b/test/files/run/exceptions-2.scala @@ -94,7 +94,7 @@ object Test { try { val a: Leaf = null; - a.x; + println(a.x); } catch { case Leaf(a) => Console.println(a); case _: NullPointerException => Console.println("Exception occurred"); @@ -104,7 +104,7 @@ object Test { def method3: Unit = try { try { val a: Leaf = null; - a.x; + println(a.x); } catch { case Leaf(a) => Console.println(a); } |