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
commit bea037f856
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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