zig/test/standalone/issue_339/test.zig
2018-02-08 02:08:45 -05:00

9 lines
230 B
Zig

const StackTrace = @import("builtin").StackTrace;
pub fn panic(msg: []const u8, stack_trace: ?&StackTrace) noreturn { @breakpoint(); while (true) {} }
fn bar() error!void {}
export fn foo() void {
bar() catch unreachable;
}