1b553ebfaf
Added tests from testData/codegen/box directory. There are blackbox tests in other directories and they are to be added.
20 lines
265 B
Kotlin
20 lines
265 B
Kotlin
var global = 0;
|
|
|
|
class C {
|
|
companion object {
|
|
init {
|
|
global = 1;
|
|
}
|
|
}
|
|
}
|
|
|
|
fun box(): String {
|
|
if (global != 0) {
|
|
return "fail1: global = $global"
|
|
}
|
|
|
|
val c = C()
|
|
if (global == 1) return "OK" else return "fail2: global = $global"
|
|
}
|
|
|