[JS IR] Add tests for checking constant inlining with JS IR IC
^KT-62425
This commit is contained in:
committed by
Space Team
parent
4ebfed04d3
commit
91edbeb747
Vendored
+11
@@ -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"
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
STEP 0:
|
||||
dependencies: lib1, lib2
|
||||
added file: m.kt
|
||||
STEP 1..7:
|
||||
dependencies: lib1, lib2
|
||||
Reference in New Issue
Block a user