diff --git a/backend.native/tests/build.gradle b/backend.native/tests/build.gradle index 511a88d517d..5de5e7e6f48 100644 --- a/backend.native/tests/build.gradle +++ b/backend.native/tests/build.gradle @@ -1192,6 +1192,10 @@ task main_exception(type: RunKonanTest) { source = "runtime/basic/main_exception.kt" } +task failed_assert(type: RunKonanTest) { + expectedExitStatus = 1 + source = "runtime/basic/failed_assert.kt" +} task initializers0(type: RunKonanTest) { goldValue = "main\n" + diff --git a/backend.native/tests/runtime/basic/failed_assert.kt b/backend.native/tests/runtime/basic/failed_assert.kt new file mode 100644 index 00000000000..0a302fc614a --- /dev/null +++ b/backend.native/tests/runtime/basic/failed_assert.kt @@ -0,0 +1,3 @@ +fun main(args: Array) { + assert(false) +} \ No newline at end of file