[JS IR] Add tests for checking constant inlining with JS IR IC

^KT-62425
This commit is contained in:
Alexander Korepanov
2023-10-11 16:48:12 +02:00
committed by Space Team
parent 4ebfed04d3
commit 91edbeb747
49 changed files with 543 additions and 0 deletions
@@ -0,0 +1,11 @@
fun box(stepId: Int): String {
val expected = if (stepId == 5) stepId - 1 else stepId
var got = simpleFunction()
if (got != "$expected") return "Fail simpleFunction: '$got' != '$expected'"
got = inlineFunctionProxy()
if (got != "$expected") return "Fail inlineFunctionProxy: '$got' != '$expected'"
return "OK"
}
@@ -0,0 +1,5 @@
STEP 0:
dependencies: lib1, lib2
added file: m.kt
STEP 1..7:
dependencies: lib1, lib2