mirror of
https://github.com/ziglang/zig.git
synced 2024-11-30 09:02:32 +00:00
14 lines
165 B
Zig
14 lines
165 B
Zig
pub fn main() u8 {
|
|
var x: ?u8 = 5;
|
|
_ = &x;
|
|
var y: u8 = 0;
|
|
if (x) |val| {
|
|
y = val;
|
|
}
|
|
return y - 5;
|
|
}
|
|
|
|
// run
|
|
// target=wasm32-wasi
|
|
//
|