add panic function to godbolt CLI API test

master
Andrew Kelley 2018-09-24 11:14:39 -04:00
parent a155f2973b
commit 6d048aa3bf
No known key found for this signature in database
GPG Key ID: 4E7CD66038A4D47C
1 changed files with 4 additions and 0 deletions

View File

@ -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{