From 6900f59041b0077620a09f71f4378a1cf96b3066 Mon Sep 17 00:00:00 2001 From: Iulian Dragos Date: Thu, 13 Sep 2007 10:21:22 +0000 Subject: 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 --- test/files/run/exceptions-2.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/files/run/exceptions-2.scala') 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); } -- cgit v1.2.3