aboutsummaryrefslogtreecommitdiff
path: root/test/behavior/bugs
diff options
context:
space:
mode:
authorIntegratedQuantum <43880493+IntegratedQuantum@users.noreply.github.com>2022-12-14 01:29:25 +0100
committerGitHub <noreply@github.com>2022-12-14 00:29:25 +0000
commit0b4461d97b5d315e71302f96076c54bbdffb7717 (patch)
tree1c52ec832285d2234c7a423b46327b56da0d3cc0 /test/behavior/bugs
parentf1b536c44c2854b33a1541624711e006748469a3 (diff)
downloadzig-0b4461d97b5d315e71302f96076c54bbdffb7717.tar.gz
zig-0b4461d97b5d315e71302f96076c54bbdffb7717.zip
Fix tautological big_int tests.
Diffstat (limited to 'test/behavior/bugs')
-rw-r--r--test/behavior/bugs/13209.zig5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/behavior/bugs/13209.zig b/test/behavior/bugs/13209.zig
new file mode 100644
index 0000000000..f85f0d342c
--- /dev/null
+++ b/test/behavior/bugs/13209.zig
@@ -0,0 +1,5 @@
+const std = @import("std");
+test {
+ try std.testing.expect(-1 == @as(i8, -3) >> 2);
+ try std.testing.expect(-1 == -3 >> 2000);
+}