compiler: allow deferred panic

This is rare, but apparently some programs do this:

    defer panic("...")

This is emitted in the IR as a builtin function.
This commit is contained in:
Ayke van Laethem
2024-10-31 09:18:32 +01:00
committed by Ayke
parent 058f62ac08
commit 449eefdb19
3 changed files with 23 additions and 0 deletions
+4
View File
@@ -23,3 +23,7 @@ recovered: panic
panic 1
panic 2
recovered: panic 2
# defer panic
defer panic
recovered from deferred call: deferred panic