Skip to content

Commit 4b9a00e

Browse files
authored
Describe the effect of !noreturn
1 parent d97f16c commit 4b9a00e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -801,3 +801,5 @@ Credit: @tauoverpi
801801
```zig
802802
echo "pub fn main() !noreturn { unreachable; }" > vimkill.zig; zig build-exe vimkill.zig
803803
```
804+
805+
This eventually [exhausts memory](https://github.com/ziglang/zig/issues/3461) on the machine which gives the OOM killer a chance to kill vim.

0 commit comments

Comments
 (0)