1b553ebfaf
Added tests from testData/codegen/box directory. There are blackbox tests in other directories and they are to be added.
16 lines
307 B
Kotlin
16 lines
307 B
Kotlin
// TARGET_BACKEND: JVM
|
|
|
|
// FULL_JDK
|
|
|
|
fun box() : String {
|
|
val processors = Runtime.getRuntime()!!.availableProcessors()
|
|
var threadNum = 1
|
|
while(threadNum <= 1024) {
|
|
if(threadNum < 2 * processors)
|
|
threadNum += 1
|
|
else
|
|
threadNum *= 2
|
|
}
|
|
return "OK"
|
|
}
|