mirror of
https://github.com/ziglang/zig.git
synced 2026-01-07 05:55:36 +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.
18 lines
269 B
Zig
18 lines
269 B
Zig
extern "c" fn write(c_int, usize, usize) usize;
|
|
|
|
pub fn main() void {
|
|
comptime var len: u32 = 5;
|
|
print(len);
|
|
len += 9;
|
|
print(len);
|
|
}
|
|
|
|
fn print(len: usize) void {
|
|
_ = write(1, @ptrToInt("Hello, World!\n"), len);
|
|
}
|
|
|
|
// run
|
|
//
|
|
// HelloHello, World!
|
|
//
|