mirror of
https://github.com/ziglang/zig.git
synced 2024-12-03 10:28:48 +00:00
12 lines
173 B
Zig
12 lines
173 B
Zig
const Example = struct { x: u8 };
|
|
|
|
pub fn main() u8 {
|
|
var example: Example = .{ .x = 5 };
|
|
_ = &example;
|
|
return example.x - 5;
|
|
}
|
|
|
|
// run
|
|
// target=wasm32-wasi
|
|
//
|