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








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

static:
  proc p =
    var
      x = int64.high
    discard x + 1
    doAssert false
  p()