aboutsummaryrefslogtreecommitdiff
path: root/test/cases/structs.0.zig
blob: 306cf73ebfa5a5b0becfb9c082d3d0b8915b2e5f (plain)
1
2
3
4
5
6
7
8
9
10
11
const Example = struct { x: u8 };

pub fn main() u8 {
    var example: Example = .{ .x = 5 };
    _ = &example;
    return example.x - 5;
}

// run
// target=wasm32-wasi
//