[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
+2 -1
View File
@@ -2,7 +2,8 @@
package foo
// CHECK_NOT_CALLED: isTypeOfOrNull
// CHECK_NULLS_COUNT: function=box count=10
// CHECK_NULLS_COUNT: function=box count=10 TARGET_BACKENDS=JS
// CHECK_NULLS_COUNT: function=box count=6 IGNORED_BACKENDS=JS
inline
fun <reified T> Any?.isTypeOfOrNull() = this is T?
+2 -2
View File
@@ -2,7 +2,7 @@
// EXPECTED_REACHABLE_NODES: 1682
package foo
// CHECK_NOT_CALLED: test
// CHECK_NOT_CALLED_IN_SCOPE: function=test scope=box
class A(val x: Int)
class B(val x: Int)
@@ -32,4 +32,4 @@ fun box(): String {
assertEquals(listOf(b2, b4), test<B>(a1, a3, *objects, a3, b4), "test<B>(a1, a3, *objects, a3, b4)")
return "OK"
}
}
@@ -2,7 +2,7 @@
package foo
// NO_INLINE
// CHECK_CALLED_IN_SCOPE: scope=box function=isInstanceOf
// CHECK_CALLED_IN_SCOPE: scope=box function=isInstanceOf TARGET_BACKENDS=JS
class A
class B