mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-07 14:24:43 +00:00
The self-hosted aarch64 backend is not currently functional due to the Liveness changes. A previous commit disabled aarch64 on the behavior tests; this commit disables it and arm for the test cases. Moreover, all incremental test cases have been unified into shared cross-platform cases, which can be gradually enabled as the backends improve.
11 lines
200 B
Zig
11 lines
200 B
Zig
const Example = struct { x: u8, y: u8 };
|
|
|
|
pub fn main() u8 {
|
|
var example: Example = .{ .x = 5, .y = 10 };
|
|
|
|
example = .{ .x = 10, .y = 20 };
|
|
return example.y + example.x - 30;
|
|
}
|
|
|
|
// run
|
|
//
|