master
1const x = @extern(*const fn () callconv(.c) void, .{ .name = "foo" });
2
3export fn entry0() void {
4 comptime x();
5}
6
7export fn entry1() void {
8 @call(.always_inline, x, .{});
9}
10
11// error
12//
13// :4:15: error: comptime call of extern function
14// :4:5: note: 'comptime' keyword forces comptime evaluation
15// :8:5: error: inline call of extern function