tsetjmp_raise.nim 200 B

123456789101112
  1. discard """
  2. outputsub: "index 2 not in 0 .. 0 [IndexDefect]"
  3. exitcode: 1
  4. cmd: "nim c --gc:arc --exceptions:setjmp $file"
  5. """
  6. # bug #12961
  7. # --gc:arc --exceptions:setjmp
  8. let a = @[1]
  9. echo a[2]