[Test] Convert IGNORE: NATIVE directives in box tests from T to W and boxInline

^KT-59057

Merge-request: KT-MR-10752
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com>
This commit is contained in:
Vladimir Sukharev
2023-06-22 18:33:24 +00:00
committed by Space Team
parent 64158a8a2f
commit f3fcaa69eb
18 changed files with 87 additions and 83 deletions
@@ -1,9 +1,5 @@
// IGNORE_BACKEND: WASM
// WASM_MUTE_REASON: IGNORED_IN_JS
// IGNORE_BACKEND: JS_IR
// IGNORE_BACKEND: JS_IR_ES6
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
// TARGET_BACKEND: JVM
// TARGET_BACKEND: JVM_IR
package test
@@ -1,9 +1,5 @@
// IGNORE_BACKEND: WASM
// WASM_MUTE_REASON: IGNORED_IN_JS
// IGNORE_BACKEND: JS_IR
// IGNORE_BACKEND: JS_IR_ES6
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
// TARGET_BACKEND: JVM
// TARGET_BACKEND: JVM_IR
// WITH_STDLIB
@@ -0,0 +1,23 @@
fun foo1(x: Int): Boolean {
when(x) {
2 + 2 -> return true
else -> return false
}
}
fun foo2(x: Int): Boolean {
when(x) {
Int.MAX_VALUE -> return true
else -> return false
}
}
fun box(): String {
if(!foo1(4)) return "FAIL: foo1(4) must be true"
if(foo1(1)) return "FAIL: foo1(1) must be false"
if(!foo2(Int.MAX_VALUE)) return "FAIL: foo2(Int.MAX_VALUE) must be true"
if(foo2(1)) return "FAIL: foo2(1) must be false"
return "OK"
}
@@ -1,4 +1,5 @@
// IGNORE_BACKEND: WASM
// https://youtrack.jetbrains.com/issue/KT-44571/Segfault-on-unnecessary-int-unboxing
// IGNORE_BACKEND: NATIVE
// NO_CHECK_LAMBDA_INLINING
// FILE: 1.kt