authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2018-09-24 11:14:39-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2018-09-24 11:14:39-04:00
log6d048aa3bfabf43da40966b01d8a4717bd8fe9b7
treeed65ef4c576ecc5c267b00d616b8b8177d6b5e56
parenta155f2973b681dd984ddaba7686dc7c07347120c
signaturelock-open Commit is signed but in an unrecognized format.

add panic function to godbolt CLI API test


1 files changed, 4 insertions(+), 0 deletions(-)

test/cli.zig+4
...@@ -107,6 +107,10 @@ fn testGodboltApi(zig_exe: []const u8, dir_path: []const u8) !void {...@@ -107,6 +107,10 @@ fn testGodboltApi(zig_exe: []const u8, dir_path: []const u8) !void {
107 \\export fn square(num: i32) i32 {107 \\export fn square(num: i32) i32 {
108 \\ return num * num;108 \\ return num * num;
109 \\}109 \\}
110 \\extern fn zig_panic() noreturn;
111 \\pub inline fn panic(msg: []const u8, error_return_trace: ?*@import("builtin").StackTrace) noreturn {
112 \\ zig_panic();
113 \\}
110 );114 );
111115
112 const args = [][]const u8{116 const args = [][]const u8{