mirror of
https://github.com/ziglang/zig.git
synced 2024-11-27 23:52:31 +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
|
|
//
|