Files
kotlin-fork/js/js.translator/testData/box/inlineStdlib/simple.kt
T
Alexey Andreev 3b3fd0fa0d JS: fix DCE limits in test data to fit new kotlin.js size
The size has increased due to new implementation of KClass
2017-10-06 18:16:51 +03:00

20 lines
289 B
Kotlin
Vendored

// EXPECTED_REACHABLE_NODES: 1116
package foo
// CHECK_CONTAINS_NO_CALLS: test
internal var counter = 0
internal fun test(a: Int) {
repeat(a) {
counter += 1
}
}
fun box(): String {
assertEquals(0, counter)
test(5)
assertEquals(5, counter)
return "OK"
}