| author | |
| committer | |
| log | 9f064dff477a100b95438c7842253dfb20224553 |
| tree | 998cab6f10265c35f313bc1d534275f18441c614 |
| parent | b739fec841ced5a6b41f36847945f638254b33bb |
| signature |
https://github.com/ziglang/zig/issues/243041 files changed, 3 insertions(+), 0 deletions(-)
doc/langref/runtime_shrExact_overflow.zig+3| ... | ... | @@ -1,3 +1,4 @@ |
| 1 | const builtin = @import("builtin"); | |
| 1 | 2 | const std = @import("std"); |
| 2 | 3 | |
| 3 | 4 | pub fn main() void { |
| ... | ... | @@ -5,6 +6,8 @@ pub fn main() void { |
| 5 | 6 | _ = &x; |
| 6 | 7 | const y = @shrExact(x, 2); |
| 7 | 8 | std.debug.print("value: {}\n", .{y}); |
| 9 | ||
| 10 | if (builtin.cpu.arch.isRISCV() and builtin.zig_backend == .stage2_llvm) @panic("https://github.com/ziglang/zig/issues/24304"); | |
| 8 | 11 | } |
| 9 | 12 | |
| 10 | 13 | // exe=fail |