[Test] Convert IGNORE: NATIVE directives in box tests from A to C

^KT-59057

Merge-request: KT-MR-10747
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com>
This commit is contained in:
Vladimir Sukharev
2023-06-22 08:39:20 +00:00
committed by Space Team
parent 2da0e622c0
commit 3d60ed8874
49 changed files with 429 additions and 1430 deletions
@@ -1,8 +1,3 @@
// 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, WASM
fun box(): String {
var x = 42
@@ -11,8 +6,8 @@ fun box(): String {
if (x != 43) return "Fail 2: $x"
val k2 = { x *= 2; x }()::class
// Note that k2 is the class of the wrapper type java.lang.Integer
if (k2 != Integer::class) return "Fail 3: $k2"
// Note that k2 is the class of the wrapper type Int
if (k2 != Int::class) return "Fail 3: $k2"
if (x != 86) return "Fail 4: $x"
return "OK"
+2 -4
View File
@@ -1,7 +1,5 @@
// 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, WASM
// TARGET_BACKEND: JVM
// TARGET_BACKEND: JVM_IR
// WITH_STDLIB