summary refs log blame commit diff stats
path: root/tests/vm/toverflowopcmulint.nim
blob: 5607c59a7eadac5bc4dec3826e76b2f4ee4b3b2d (plain) (tree)
1
2
3
4
5
6
7
8






                                
                      


                 
discard """
  errormsg: "over- or underflow"
"""

static:
  proc p =
    var
      x = 1'i64 shl 62
    discard x * 2
    assert false
  p()