Meg's Mirrors
zig
about
heads
tags
log
tree
search
Search
zig
test
cases
compile_errors
callconv_from_global_variable.zig
pretty
plain
permalink
blame
history
•
7 lines
•
213 B
1
var cc: @import("std").builtin.CallingConvention = .c;
2
export fn foo() callconv(cc) void {}
3
4
// error
5
//
6
// :2:26: error: unable to resolve comptime value
7
// :2:26: note: calling convention must be comptime-known