summary refs log blame commit diff stats
path: root/tests/vm/toverflowopcmulint.nim
blob: 81b3234bad91ede75f075222391cc20c6f80b757 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                
discard """
  errormsg: "over- or underflow"
"""

static:
  proc p =
    var
      x = 1 shl 62
    discard x * 2
    assert false
  p()