Minor, remove extraneous box tests

These tests are already present in
`compiler/testData/codegen/box/classes/kt496.kt`.
This commit is contained in:
Alexander Udalov
2023-06-30 14:15:42 +02:00
committed by Space Team
parent e6c4a8957d
commit 5513740659
17 changed files with 0 additions and 211 deletions
@@ -1,11 +0,0 @@
fun shouldReturnFalse() : Boolean {
try {
return true
} finally {
if (true)
return false
}
}
fun box(): String =
if (shouldReturnFalse()) "Failed" else "OK"
@@ -1,22 +0,0 @@
fun shouldReturn11() : Int {
var x = 0
while (true) {
try {
if(x < 10)
x++
else
break
}
finally {
x++
}
}
return x
}
fun box(): String {
val test = shouldReturn11()
if (test != 11) return "Failed, test=$test"
return "OK"
}