1b553ebfaf
Added tests from testData/codegen/box directory. There are blackbox tests in other directories and they are to be added.
26 lines
376 B
Kotlin
26 lines
376 B
Kotlin
inline fun test(s: () -> Int): Int =
|
|
try {
|
|
val i = s()
|
|
i + 10
|
|
}
|
|
finally {
|
|
0
|
|
}
|
|
|
|
fun box() : String {
|
|
test {
|
|
try {
|
|
val p = 1
|
|
return "OK"
|
|
}
|
|
catch(e: Exception) {
|
|
-2
|
|
}
|
|
finally {
|
|
-3
|
|
}
|
|
}
|
|
|
|
return "Failed"
|
|
}
|