mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 06:13:07 +00:00
16 lines
215 B
Zig
16 lines
215 B
Zig
const std = @import("std");
|
|
|
|
pub fn main() void {
|
|
foo() catch print();
|
|
}
|
|
|
|
fn foo() anyerror!void {}
|
|
|
|
fn print() void {
|
|
_ = std.posix.write(1, "Hello, World!\n") catch {};
|
|
}
|
|
|
|
// run
|
|
// target=x86_64-macos
|
|
//
|