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

static:
  proc p =
    var x = int64.low
    discard x - 1
    assert false
  p()