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











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

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