diff options
author | Jasper Jenkins <jasper.vs.jenkins@gmail.com> | 2019-10-10 23:38:08 -0700 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2019-10-11 08:38:08 +0200 |
commit | 245a954b250b3e95f68c6bdadeba6ef1425442aa (patch) | |
tree | b45356858b54728f3e36ddfb2b13f8e5a54ed0b9 /tests/arithm | |
parent | 9e62876647e4b7d5c31854abf16596b76cd03b4a (diff) | |
download | Nim-245a954b250b3e95f68c6bdadeba6ef1425442aa.tar.gz |
ungeneric unsigned ops (#12230)
* ungenericise unsigned ops, remove nimNewShiftOps * fix/remove tests * update t6448 * fix line info * disable on 32bit * fix different line info * add changelog entry
Diffstat (limited to 'tests/arithm')
-rw-r--r-- | tests/arithm/tarithm.nim | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/arithm/tarithm.nim b/tests/arithm/tarithm.nim index 4625a5ecf..fcb78bd7a 100644 --- a/tests/arithm/tarithm.nim +++ b/tests/arithm/tarithm.nim @@ -4,6 +4,14 @@ int32 int32 1280 1280 +3 +1 +2 +2 +3 +4294967295 +2 +0 ''' """ @@ -145,3 +153,17 @@ block tsubrange: level = min(level + 2, maxLevel).n16 doAssert level == 1 + +block tissue12177: + var a: uint16 = 1 + var b: uint32 = 2 + + echo(b + a) + echo(b - a) + echo(b * a) + echo(b div a) + + echo(a + b) + echo(a - b) + echo(a * b) + echo(a div b) |