#zig build-obj {
--name test -fno-emit-bin
-Mroot=test.zig
#}

#write test.zig {
const x = @extern(*comptime_int, .{ .name = "foo" });
const y = @extern(*fn (u8) u8, .{ .name = "bar" });
const z = @extern(*fn (u8) callconv(.c) u8, .{ .name = "bar" });
comptime {
    _ = x;
}
comptime {
    _ = y;
}
comptime {
    _ = z;
}
#}
#update
#check errors {
test.zig:1:19: error: extern symbol cannot have type '*comptime_int'
test.zig:1:19: note: pointer element type 'comptime_int' is not extern compatible
test.zig:2:19: error: extern symbol cannot have type '*fn (u8) u8'
test.zig:2:19: note: pointer element type 'fn (u8) u8' is not extern compatible
test.zig:2:19: note: extern function must specify calling convention
test.zig:3:19: error: extern symbol cannot have type '*fn (u8) callconv(.c) u8'
test.zig:3:19: note: pointer to extern function must be 'const'
#}
