[JS IR] Make tests that use directives pass with IR BE
This commit is contained in:
@@ -13,7 +13,10 @@ public fun <T, R> apply(x: T, fn: (T)->R): R =
|
||||
|
||||
import utils.*
|
||||
|
||||
// CHECK_CONTAINS_NO_CALLS: test except=imul
|
||||
// CHECK_CONTAINS_NO_CALLS: test except=imul TARGET_BACKENDS=JS
|
||||
|
||||
// FIXME: Not inlined on IR BE
|
||||
// CHECK_CONTAINS_NO_CALLS: test except=multiplyBy2 IGNORED_BACKENDS=JS
|
||||
|
||||
internal inline fun multiplyBy2(x: Int): Int = x * 2
|
||||
|
||||
@@ -23,4 +26,4 @@ fun box(): String {
|
||||
assertEquals(6, test(3))
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user