Move IR interpreter's tests from ir/loweredIr directory into box

This commit is contained in:
Ivan Kylchik
2022-12-22 17:22:58 +01:00
committed by Space Team
parent 7d6bac64fb
commit bc21753877
42 changed files with 642 additions and 329 deletions
@@ -0,0 +1,14 @@
// TARGET_BACKEND: JVM_IR
// WITH_STDLIB
const val code = '1'.code
const val floorDiv = 10.floorDiv(2)
const val mod = 5.mod(3)
fun box(): String {
if (code != 49) return "Fail 1"
if (floorDiv != 5) return "Fail 2"
if (mod != 2) return "Fail 3"
return "OK"
}