mirror of
https://github.com/ziglang/zig.git
synced 2024-11-26 23:22:44 +00:00
11 lines
195 B
Zig
11 lines
195 B
Zig
const std = @import("std");
|
|
|
|
pub fn main() void {
|
|
var x: u8 = 0b01010101; // runtime-known
|
|
_ = &x;
|
|
const y = @shlExact(x, 2);
|
|
std.debug.print("value: {}\n", .{y});
|
|
}
|
|
|
|
// exe=fail
|