zig/test/cases/errors.0.zig
2024-03-19 16:18:18 -07:00

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
//