mirror of
https://github.com/ziglang/zig.git
synced 2026-02-21 16:54:52 +00:00
behavior: add test coverage for previous i128 regression on aarch64
Closes #8429
This commit is contained in:
parent
981cfd9c1c
commit
01947bfe92
@ -53,6 +53,11 @@ test "int128" {
|
||||
|
||||
buff = -0x12341234123412341234123412341234;
|
||||
try expect(-buff == 0x12341234123412341234123412341234);
|
||||
|
||||
const a: i128 = -170141183460469231731687303715884105728;
|
||||
const b: i128 = -0x8000_0000_0000_0000_0000_0000_0000_0000;
|
||||
try expect(@divFloor(b, 1_000_000) == -170141183460469231731687303715885);
|
||||
try expect(a == b);
|
||||
}
|
||||
|
||||
test "truncate int128" {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user