[K/N][Tests] Support test directive ASSERTIONS_MODE

^KT-64844 Fixed
This commit is contained in:
Vladimir Sukharev
2024-01-09 23:15:18 +01:00
committed by Space Team
parent 809d652bdf
commit fee2a20a55
9 changed files with 53 additions and 54 deletions
+2 -1
View File
@@ -1,13 +1,14 @@
// IGNORE_BACKEND: WASM
// WASM_MUTE_REASON: STDLIB_ASSERT
// KT-59059
// IGNORE_BACKEND: NATIVE
// IGNORE_BACKEND: JS_IR
// IGNORE_BACKEND: JS_IR_ES6
// IGNORE_BACKEND: JS
// ASSERTIONS_MODE: always-disable
// WITH_STDLIB
@file:Suppress("OPT_IN_USAGE_ERROR") // ExperimentalNativeApi is defined only in Native
fun checkTrue(): Boolean {
var hit = false
val l = { hit = true; true }
-1
View File
@@ -2,7 +2,6 @@
// IGNORE_BACKEND: JS_IR
// IGNORE_BACKEND: JS_IR_ES6
// IGNORE_BACKEND: JS
// IGNORE_NATIVE: optimizationMode=OPT
// ASSERTIONS_MODE: always-enable
// WITH_STDLIB