2022-08-08 08:31:32 -05:00
|
|
|
fn efiapi(f: extern "efiapi" fn(usize, ...)) {
|
2022-10-23 18:11:25 -05:00
|
|
|
//~^ ERROR: C-variadic function must have a compatible calling convention, like `C` or `cdecl`
|
|
|
|
//~^^ ERROR: using calling conventions other than `C` or `cdecl` for varargs functions is unstable
|
2022-08-08 08:31:32 -05:00
|
|
|
f(22, 44);
|
|
|
|
}
|
|
|
|
fn sysv(f: extern "sysv64" fn(usize, ...)) {
|
2022-10-23 18:11:25 -05:00
|
|
|
//~^ ERROR: C-variadic function must have a compatible calling convention, like `C` or `cdecl`
|
|
|
|
//~^^ ERROR: using calling conventions other than `C` or `cdecl` for varargs functions is unstable
|
2022-08-08 08:31:32 -05:00
|
|
|
f(22, 44);
|
|
|
|
}
|
|
|
|
fn win(f: extern "win64" fn(usize, ...)) {
|
2022-10-23 18:11:25 -05:00
|
|
|
//~^ ERROR: C-variadic function must have a compatible calling convention, like `C` or `cdecl`
|
|
|
|
//~^^ ERROR: using calling conventions other than `C` or `cdecl` for varargs functions is unstable
|
2022-08-08 08:31:32 -05:00
|
|
|
f(22, 44);
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|