2022-05-13 15:00:20 +08:00
|
|
|
const std = @import("std");
|
2022-05-13 15:16:38 +08:00
|
|
|
const builtin = @import("builtin");
|
2022-05-13 15:00:20 +08:00
|
|
|
|
|
|
|
pub fn panic(message: []const u8, stack_trace: ?*std.builtin.StackTrace) noreturn {
|
|
|
|
_ = message;
|
|
|
|
_ = stack_trace;
|
|
|
|
std.process.exit(0);
|
|
|
|
}
|
|
|
|
pub fn main() !void {
|
2022-05-13 15:16:38 +08:00
|
|
|
if (builtin.zig_backend == .stage1 and builtin.os.tag == .wasi) {
|
|
|
|
// TODO file a bug for this failure
|
|
|
|
std.process.exit(0); // skip the test
|
|
|
|
}
|
2022-05-13 15:00:20 +08:00
|
|
|
var bytes: [1]u8 align(16) = undefined;
|
|
|
|
var ptr = other;
|
|
|
|
var frame = @asyncCall(&bytes, {}, ptr, .{});
|
|
|
|
_ = frame;
|
|
|
|
return error.TestFailed;
|
|
|
|
}
|
|
|
|
fn other() callconv(.Async) void {
|
|
|
|
suspend {}
|
|
|
|
}
|
|
|
|
// run
|
|
|
|
// backend=stage1
|
2022-05-14 08:58:32 +08:00
|
|
|
// target=native
|