summaryrefslogtreecommitdiff
path: root/test/files/jvm/t7006/Foo_1.scala
blob: 995619ce6bf9171ffa1272cd01b3a88aff2a886d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
class Foo_1 {
  def foo {
    try {
      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
  }
}