zig/test/cases/structs.0.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
//