summaryrefslogtreecommitdiff
path: root/test/files/jvm/t7006/Foo_1.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/jvm/t7006/Foo_1.scala')
-rw-r--r--test/files/jvm/t7006/Foo_1.scala3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/files/jvm/t7006/Foo_1.scala b/test/files/jvm/t7006/Foo_1.scala
index f84269daf2..995619ce6b 100644
--- a/test/files/jvm/t7006/Foo_1.scala
+++ b/test/files/jvm/t7006/Foo_1.scala
@@ -1,9 +1,10 @@
class Foo_1 {
def foo {
try {
- val x = 3
+ val x = 3 // this will be optimized away, leaving a useless jump only block
} finally {
print("hello")
}
+ while(true){} // ensure infinite loop doesn't break the algoirthm
}
}