| ... | @@ -1,3 +1,4 @@ | ... | @@ -1,3 +1,4 @@ |
| | 1 | const builtin = @import("builtin"); |
| 1 | const std = @import("std"); | 2 | const std = @import("std"); |
| 2 | | 3 | |
| 3 | pub fn main() void { | 4 | pub fn main() void { |
| ... | @@ -5,6 +6,8 @@ pub fn main() void { | ... | @@ -5,6 +6,8 @@ pub fn main() void { |
| 5 | _ = &x; | 6 | _ = &x; |
| 6 | const y = @shrExact(x, 2); | 7 | const y = @shrExact(x, 2); |
| 7 | std.debug.print("value: {}\n", .{y}); | 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 | // exe=fail | 13 | // exe=fail |