summary refs log blame commit diff stats
path: root/tests/vm/toverflowopcsubint.nim
blob: 8d114f200e899b9dcdd0ab5807edfab2bd7c1f86 (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.low
      y = 1
    discard x - y
    assert false
  p()