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

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