summary refs log tree commit diff stats
path: root/tests/vm/toverflowopcsubimmint.nim
blob: 08356590cf517a242bffdd4876096877959441ab (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
    doAssert false
  p()