summary refs log tree commit diff stats
path: root/tests/overflw/toverflw2.nim
blob: c06b35c6dd1738351911762f38433344d654b10b (plain) (blame)
1
2
3
4
5
6
7
discard """
  outputsub: "Error: unhandled exception: over- or underflow [OverflowDefect]"
  exitcode: "1"
"""
var a : int32 = 2147483647
var b : int32 = 2147483647
var c = a + b