toverflowopcaddimmint.nim 141 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. doAssert false
  10. p()