blob: 15b0c10fbee77ff2551cf8c5f8a6cc03dae31e30 [file]
// TARGET_BACKEND: NATIVE
// FILECHECK_STAGE: CStubs
// ASSERTIONS_MODE: always-disable
// WITH_STDLIB
@OptIn(kotlin.experimental.ExperimentalNativeApi::class)
inline fun foo(x: Boolean) = assert(x)
// CHECK-LABEL: define ptr @"kfun:#box(){}kotlin.String"
// CHECK-NOT: call void @"kfun:kotlin.AssertionError#<init>(kotlin.Any?){}"
fun box(): String {
foo(false)
return "OK"
}