[K/N] Convert and enable some tests using System.out?.println()

^KT-59057

Merge-request: KT-MR-10546
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com>
This commit is contained in:
Vladimir Sukharev
2023-06-15 20:00:27 +00:00
committed by Space Team
parent 67b00f86b7
commit 1e05cb308c
17 changed files with 77 additions and 109 deletions
@@ -0,0 +1,21 @@
// TARGET_BACKEND: JVM
// TARGET_BACKEND: JVM_IR
// WITH_STDLIB
fun t12(x: Int) : Int {
var y = x
val runnable = object : Runnable {
override fun run () {
y = y + 1
}
}
while(y < 100) {
runnable.run()
}
return y
}
fun box(): String {
val result = t12(0)
return if (result == 100) "OK" else result.toString()
}