[JS IR] Make tests that use directives pass with IR BE
This commit is contained in:
+3
-3
@@ -1,7 +1,7 @@
|
||||
// EXPECTED_REACHABLE_NODES: 1296
|
||||
package foo
|
||||
|
||||
// CHECK_CONTAINS_NO_CALLS: add
|
||||
// CHECK_CONTAINS_NO_CALLS: myAdd
|
||||
|
||||
internal data class IntPair(public var fst: Int, public var snd: Int) {
|
||||
inline public fun getFst(): Int { return fst }
|
||||
@@ -11,7 +11,7 @@ internal data class IntPair(public var fst: Int, public var snd: Int) {
|
||||
inline public fun setSnd(v: Int) { this.snd = v }
|
||||
}
|
||||
|
||||
internal fun add(p: IntPair, toFst: Int, toSnd: Int) {
|
||||
internal fun myAdd(p: IntPair, toFst: Int, toSnd: Int) {
|
||||
val fst = p.getFst()
|
||||
p.setFst(fst + toFst)
|
||||
|
||||
@@ -21,7 +21,7 @@ internal fun add(p: IntPair, toFst: Int, toSnd: Int) {
|
||||
|
||||
fun box(): String {
|
||||
val p = IntPair(0, 0)
|
||||
add(p, 1, 2)
|
||||
myAdd(p, 1, 2)
|
||||
assertEquals(IntPair(1, 2), p)
|
||||
|
||||
return "OK"
|
||||
|
||||
Reference in New Issue
Block a user