mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
This also includes some compiler and std changes to correct error messages which weren't properly updated before.
22 lines
564 B
Zig
22 lines
564 B
Zig
fn foo(...) void {}
|
|
fn bar(a: anytype, ...) callconv(a) void {}
|
|
inline fn foo2(...) void {}
|
|
|
|
comptime {
|
|
_ = foo;
|
|
}
|
|
comptime {
|
|
_ = bar;
|
|
}
|
|
comptime {
|
|
_ = foo2;
|
|
}
|
|
|
|
// error
|
|
// target=x86_64-linux
|
|
//
|
|
// :1:1: error: variadic function does not support 'auto' calling convention
|
|
// :1:1: note: supported calling conventions: 'x86_64_sysv', 'x86_64_win'
|
|
// :1:1: error: variadic function does not support 'inline' calling convention
|
|
// :1:1: note: supported calling conventions: 'x86_64_sysv', 'x86_64_win'
|
|
// :2:1: error: generic function cannot be variadic
|