zig/test/cases/aarch64-macos/hello_world_with_updates.3.zig

17 lines
231 B
Zig
Raw Normal View History

extern "c" fn write(usize, usize, usize) usize;
pub fn main() void {
print();
}
fn print() void {
const msg = @ptrToInt("Hello, World!\n");
const len = 14;
_ = write(1, msg, len);
}
// run
//
// Hello, World!
//