[JS IR] Add tests for JS IR IC + PL
^KT-57347 related
This commit is contained in:
committed by
Space Team
parent
97620030c6
commit
82a1242f22
Vendored
+11
@@ -0,0 +1,11 @@
|
||||
fun box(stepId: Int): String {
|
||||
val x = test()
|
||||
val expected = when (stepId) {
|
||||
0, 1, 3, 4 -> stepId
|
||||
2 -> 1
|
||||
else -> return "Unknown"
|
||||
}
|
||||
if (expected != x) return "Fail; $expected != $x"
|
||||
|
||||
return "OK"
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
STEP 0:
|
||||
dependencies: lib1
|
||||
modifications:
|
||||
added file: m.kt, test.kt
|
||||
STEP 1..4:
|
||||
dependencies: lib1
|
||||
rebuild klib: false
|
||||
updated imports: test.kt
|
||||
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
fun test(): Int {
|
||||
try {
|
||||
return makeKlass().foo()
|
||||
} catch (e: Error) {
|
||||
return 1
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user