mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
This was forgotten during the refactoring of std.builtin.CallingConvention. It mirrors mips64_n32 for MIPS.
17 lines
472 B
Zig
17 lines
472 B
Zig
fn foo(...) void {}
|
|
inline fn foo2(...) void {}
|
|
|
|
comptime {
|
|
_ = foo;
|
|
}
|
|
comptime {
|
|
_ = foo2;
|
|
}
|
|
|
|
// error
|
|
// target=x86_64-linux
|
|
//
|
|
// :1:8: error: variadic function does not support 'auto' calling convention
|
|
// :1:8: note: supported calling conventions: 'x86_64_sysv', 'x86_64_x32', 'x86_64_win'
|
|
// :2:16: error: variadic function does not support 'inline' calling convention
|
|
// :2:16: note: supported calling conventions: 'x86_64_sysv', 'x86_64_x32', 'x86_64_win'
|