parent
a577a88c36
commit
8aadba1a2a
2 changed files with 23 additions and 9 deletions
11
tests/destructor/tsetjmp_raise.nim
Normal file
11
tests/destructor/tsetjmp_raise.nim
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
discard """
|
||||
outputsub: "index 2 not in 0 .. 0 [IndexError]"
|
||||
exitcode: 1
|
||||
cmd: "nim c --gc:arc --exceptions:setjmp $file"
|
||||
"""
|
||||
|
||||
# bug #12961
|
||||
# --gc:arc --exceptions:setjmp
|
||||
let a = @[1]
|
||||
echo a[2]
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue