summary refs log tree commit diff stats
path: root/tests/vm/toverflowopcaddimmint.nim
blob: c36b9ed9b33d03c2c15356321cf3e536298349d6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
discard """
  errormsg: "over- or underflow"
"""

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