summaryrefslogtreecommitdiff
path: root/test/files/run/exceptions-2.scala
diff options
context:
space:
mode:
authorIulian Dragos <jaguarul@gmail.com>2007-09-13 10:21:22 +0000
committerIulian Dragos <jaguarul@gmail.com>2007-09-13 10:21:22 +0000
commit6900f59041b0077620a09f71f4378a1cf96b3066 (patch)
tree28e76730f87cf47c62f4101fbd74759e7e0d7d67 /test/files/run/exceptions-2.scala
parentc1ce17b26427f97dacea8d36eefcd5b604dfe89b (diff)
downloadscala-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/files/run/exceptions-2.scala')
-rw-r--r--test/files/run/exceptions-2.scala4
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);
}