#zig build-obj {
--name test -fno-emit-bin
-target x86_64-linux-none
-Mroot=test.zig
#}

#write test.zig {
const fns = [_](fn (i32) i32){ a, b, c };
pub fn a(x: i32) i32 {
    return x + 0;
}
pub fn b(x: i32) i32 {
    return x + 1;
}
export fn c(x: i32) i32 {
    return x + 2;
}

export fn entry() usize {
    return @sizeOf(@TypeOf(fns));
}
#}
#update
#check errors {
test.zig:1:38: error: expected type 'fn (i32) i32', found 'fn (i32) callconv(.c) i32'
test.zig:1:38: note: calling convention 'x86_64_sysv' cannot cast into calling convention 'auto'
#}
