Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
timotheecour committed Dec 27, 2020
1 parent d84a52c commit 9e4e6fe
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/stdlib/tsystem.nim
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,11 @@ template main() =
doAssertRaises(OverflowDefect): discard abs(int32.low)
doAssertRaises(OverflowDefect): discard abs(int64.low)

block: # `-`
let a = low(int)
doAssertRaises(OverflowDefect): discard -a
disableVM:
when not defined(js):
doAssertRaises(OverflowDefect): discard -a

static: main()
main()

0 comments on commit 9e4e6fe

Please sign in to comment.