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

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