aboutsummaryrefslogtreecommitdiff
path: root/test/cases/compile_errors/invalid_variadic_function.zig
blob: cea9876892935a31997db32e325b97ee143ccb07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
fn foo(...) void {}
inline fn foo2(...) void {}

comptime {
    _ = foo;
}
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'