[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,13 +1,13 @@
// EXPECTED_REACHABLE_NODES: 1283
package foo
// CHECK_CONTAINS_NO_CALLS: add
// CHECK_CONTAINS_NO_CALLS: myAdd
internal inline fun run(action: () -> Int): Int {
return action()
}
internal fun add(a: Int, b: Int): Int {
internal fun myAdd(a: Int, b: Int): Int {
var sum = a + b
inline fun getSum(): Int {
@@ -25,7 +25,7 @@ internal fun add(a: Int, b: Int): Int {
}
fun box(): String {
assertEquals(3, add(1, 2))
assertEquals(3, myAdd(1, 2))
return "OK"
}