#zig build-obj {
--name test -fno-emit-bin
-target wasm32-freestanding -fno-llvm
-Mroot=test.zig
#}

#write test.zig {
const F1 = fn () callconv(.{ .x86_64_preserve_most = .{} }) void;
const F2 = fn () callconv(.{ .aarch64_preserve_most = .{} }) void;
export fn entry1() void {
    const a: F1 = undefined;
    _ = a;
}
export fn entry2() void {
    const a: F2 = undefined;
    _ = a;
}
#}
#update
#check errors {
test.zig:1:28: error: calling convention 'x86_64_preserve_most' only available on architectures 'x86_64'
test.zig:2:28: error: calling convention 'aarch64_preserve_most' only available on architectures 'aarch64', 'aarch64_be'
#}
