new segfaults.nim stdlib module works on Windows
This commit is contained in:
parent
64a7d2fd08
commit
cdebcf23d9
3 changed files with 48 additions and 5 deletions
|
|
@ -18,6 +18,10 @@ proc main =
|
|||
try:
|
||||
var x: ptr int
|
||||
echo x[]
|
||||
try:
|
||||
raise newException(ValueError, "not a crash")
|
||||
except ValueError:
|
||||
discard
|
||||
except NilAccessError:
|
||||
echo "caught a crash!"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue