toverflowopcmulint.nim 143 B

123456789101112
  1. discard """
  2. errormsg: "over- or underflow"
  3. """
  4. static:
  5. proc p =
  6. var
  7. x = 1'i64 shl 62
  8. discard x * 2
  9. doAssert false
  10. p()