Describe the effect of `!noreturn`
This commit is contained in:
parent
d97f16c0b3
commit
4b9a00e96f
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in New Issue