mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 22:04:21 +00:00
13 lines
363 B
Zig
13 lines
363 B
Zig
const builtin = @import("builtin");
|
|
const std = @import("std");
|
|
|
|
pub fn main() void {
|
|
var x: u8 = 0b10101010; // runtime-known
|
|
_ = &x;
|
|
const y = @shrExact(x, 2);
|
|
std.debug.print("value: {}\n", .{y});
|
|
|
|
if (builtin.cpu.arch.isRISCV() and builtin.zig_backend == .stage2_llvm) @panic("https://github.com/ziglang/zig/issues/24304");
|
|
}
|
|
|
|
// exe=fail
|