diff options
| author | Mitchell Hashimoto <mitchell.hashimoto@gmail.com> | 2022-03-16 21:22:02 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2022-03-16 23:18:35 -0700 |
| commit | 79d3780fbda475a50d6e0ca53d51c9e7c7690ab1 (patch) | |
| tree | c500f3c426116267f37fdb0a567bb8de282fa199 /test/behavior/math.zig | |
| parent | 1af51a083383be5bbb3249c24e00326aff935122 (diff) | |
| download | zig-79d3780fbda475a50d6e0ca53d51c9e7c7690ab1.tar.gz zig-79d3780fbda475a50d6e0ca53d51c9e7c7690ab1.zip | |
stage2: bit_not on u0 is always 0
Diffstat (limited to 'test/behavior/math.zig')
| -rw-r--r-- | test/behavior/math.zig | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/behavior/math.zig b/test/behavior/math.zig index 05decb348e..5b91ceed47 100644 --- a/test/behavior/math.zig +++ b/test/behavior/math.zig @@ -375,6 +375,9 @@ test "binary not" { try expect(comptime x: { break :x ~@as(u64, 2147483647) == 18446744071562067968; }); + try expect(comptime x: { + break :x ~@as(u0, 0) == 0; + }); try testBinaryNot(0b1010101010101010); } |
