toverflowopcaddint.nim 153 B

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