tgotoexceptions6.nim 233 B

1234567891011
  1. discard """
  2. cmd: "nim c --gc:arc --exceptions:goto $file"
  3. outputsub: "Error: unhandled exception: virus detected [ValueError]"
  4. exitcode: "1"
  5. """
  6. # bug #13436
  7. proc foo =
  8. raise newException(ValueError, "virus detected")
  9. foo()