summaryrefslogtreecommitdiff
path: root/test/files/jvm/t7006/Foo_1.scala
blob: 3985557d9f1a29ed8b23fdddf7477dcd88283bf6 (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 algorithm
  }
}