mirror of
https://github.com/ziglang/zig.git
synced 2024-12-03 10:28:48 +00:00
17 lines
212 B
Zig
17 lines
212 B
Zig
pub fn main() void {
|
|
var a: u32 = 0;
|
|
_ = &a;
|
|
if (a == 0) {
|
|
comptime var b: u32 = 0;
|
|
b = 1;
|
|
}
|
|
}
|
|
comptime {
|
|
var x: i32 = 1;
|
|
x += 1;
|
|
if (x != 2) unreachable;
|
|
}
|
|
|
|
// run
|
|
//
|