fn entry() callconv(.c) void {}
comptime {
    @export(&entry, .{ .name = "entry", .linkage = @as(u32, 1234) });
}

// error
//
// :3:42: error: expected type 'lang.GlobalLinkage', found 'u32'
// :?:?: note: enum declared here
