toverflowopcaddimmint.nim 139 B

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