aboutsummaryrefslogtreecommitdiff
path: root/test/cases/compile_errors/callconv_from_global_variable.zig
blob: 26b63b453c6aa7ccfb588cfae660acbb9d82dee9 (plain)
1
2
3
4
5
6
7
8
9
var cc: @import("std").builtin.CallingConvention = .C;
export fn foo() callconv(cc) void {}

// error
// backend=stage2
// target=native
//
// :2:26: error: unable to resolve comptime value
// :2:26: note: calling convention must be comptime-known