From 4b9a00e96ff7af8e870a6219b6e707deb9d47f99 Mon Sep 17 00:00:00 2001 From: "Simon A. Nielsen Knights" Date: Sat, 2 Apr 2022 05:46:59 +0000 Subject: [PATCH] Describe the effect of `!noreturn` --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index c49a2c0..e2235bd 100644 --- a/README.md +++ b/README.md @@ -801,3 +801,5 @@ Credit: @tauoverpi ```zig echo "pub fn main() !noreturn { unreachable; }" > vimkill.zig; zig build-exe vimkill.zig ``` + +This eventually [exhausts memory](https://github.com/ziglang/zig/issues/3461) on the machine which gives the OOM killer a chance to kill vim.