commit 6d048aa3bfabf43da40966b01d8a4717bd8fe9b7 (tree) parent a155f2973b681dd984ddaba7686dc7c07347120c Author: Andrew Kelley <superjoe30@gmail.com> Date: Mon, 24 Sep 2018 11:14:39 -0400 add panic function to godbolt CLI API test Diffstat:
| M | test/cli.zig | | | 4 | ++++ |
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/test/cli.zig b/test/cli.zig @@ -107,6 +107,10 @@ fn testGodboltApi(zig_exe: []const u8, dir_path: []const u8) !void { \\export fn square(num: i32) i32 { \\ return num * num; \\} + \\extern fn zig_panic() noreturn; + \\pub inline fn panic(msg: []const u8, error_return_trace: ?*@import("builtin").StackTrace) noreturn { + \\ zig_panic(); + \\} ); const args = [][]const u8{