toverflowopcsubint.nim 150 B

12345678910111213
  1. discard """
  2. errormsg: "over- or underflow"
  3. """
  4. static:
  5. proc p =
  6. var
  7. x = int64.low
  8. y = 1
  9. discard x - y
  10. assert false
  11. p()