[JS IR] Make tests that use directives pass with IR BE

This commit is contained in:
Sergej Jaskiewicz
2021-10-04 20:44:06 +03:00
committed by Space
parent a359e503fb
commit 65d40c2253
101 changed files with 415 additions and 217 deletions
@@ -1,5 +1,6 @@
// EXPECTED_REACHABLE_NODES: 1285
// HAS_NO_CAPTURED_VARS: function=A_init except=Kotlin;A;equals
// HAS_NO_CAPTURED_VARS: function=A_init except=Kotlin;A;equals TARGET_BACKENDS=JS
// TODO: Enable this when KT-***** is resolved. // HAS_NO_CAPTURED_VARS: function=A_init_$Init$ except=A;equals IGNORED_BACKENDS=JS
class A() {
var y: String? = null
@@ -1,6 +1,7 @@
// KJS_WITH_FULL_RUNTIME
// EXPECTED_REACHABLE_NODES: 1283
// CHECK_VARS_COUNT: function=test count=2
// CHECK_VARS_COUNT: function=test count=2 TARGET_BACKENDS=JS
// CHECK_VARS_COUNT: function=test_1 count=4 IGNORED_BACKENDS=JS
var log = ""
fun test() {
@@ -3,7 +3,8 @@
// CHECK_NOT_CALLED_IN_SCOPE: function=component1 scope=test1
// CHECK_NOT_CALLED_IN_SCOPE: function=component1 scope=test2
// CHECK_NOT_CALLED_IN_SCOPE: function=component1 scope=test3
// CHECK_CONTAINS_NO_CALLS: test4 except=toString
// CHECK_CONTAINS_NO_CALLS: test4 except=toString TARGET_BACKENDS=JS
// CHECK_CONTAINS_NO_CALLS: test4 except=_get_size__0_k$ IGNORED_BACKENDS=JS
fun test1(a: Sequence<String>): String {
var s = ""
@@ -3,7 +3,7 @@
// CHECK_CONTAINS_NO_CALLS: testRangeToFunction
// CHECK_CONTAINS_NO_CALLS: testUntil
// CHECK_CONTAINS_NO_CALLS: testDownTo
// CHECK_CONTAINS_NO_CALLS: testStep
// CHECK_CONTAINS_NO_CALLS: testStep TARGET_BACKENDS=JS
// CHECK_CONTAINS_NO_CALLS: testEmptyRange
// CHECK_CONTAINS_NO_CALLS: testRangeToParams except=from;to