diff options
| author | Marc Tiehuis <marctiehuis@gmail.com> | 2018-05-10 22:26:26 +1200 |
|---|---|---|
| committer | Marc Tiehuis <marctiehuis@gmail.com> | 2018-05-10 22:26:26 +1200 |
| commit | efa39c5343e13a13e65210f55da5df23ee3feb3e (patch) | |
| tree | 5bf359499baa56f4066165c135e382d3a9bb1f1e /test | |
| parent | c3ddf5069e0fb0b728ce275410988ccec3ab7ce9 (diff) | |
| download | zig-efa39c5343e13a13e65210f55da5df23ee3feb3e.tar.gz zig-efa39c5343e13a13e65210f55da5df23ee3feb3e.zip | |
Fix bigint shift-right partial shift
Diffstat (limited to 'test')
| -rw-r--r-- | test/cases/math.zig | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/cases/math.zig b/test/cases/math.zig index 3c33b14fbf..13704ecd4b 100644 --- a/test/cases/math.zig +++ b/test/cases/math.zig @@ -366,6 +366,14 @@ test "big number multi-limb shift and mask" { } } +test "big number multi-limb partial shift right" { + comptime { + var a = 0x1ffffffffeeeeeeee; + a >>= 16; + assert(a == 0x1ffffffffeeee); + } +} + test "xor" { test_xor(); comptime test_xor(); |
