refs #17114: workaround for arm64 which should segfault but does not (#17178)

* refs #17114: workaround for arm64 which should segfault but does not
* fixup
* Update lib/std/wrapnils.nim

Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
This commit is contained in:
Timothee Cour
2021-02-24 23:40:43 -08:00
committed by GitHub
parent 60929953cb
commit bea037f856
2 changed files with 2 additions and 1 deletions

View File

@@ -13,6 +13,8 @@
##
## Tested on these OSes: Linux, Windows, OSX
# xxx possibly broken on arm64, see bug #17178
{.used.}
# do allocate memory upfront:

View File

@@ -24,7 +24,6 @@ runnableExamples:
assert (?.f2.x2.x2).x3 == nil # this terminates ?. early
import std/segfaults # enable `NilAccessDefect` exceptions
doAssertRaises(NilAccessDefect): echo (?.f2.x2.x2).x3[]
from std/options import Option, isSome, get, option, unsafeGet, UnpackDefect
export options.get, options.isSome, options.isNone