mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
46f9e878f6
Tracking issue: https://github.com/rust-lang/rust/issues/65815
17 lines
806 B
Rust
17 lines
806 B
Rust
fn efiapi(f: extern "efiapi" fn(usize, ...)) {
|
|
//~^ 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
|
|
f(22, 44);
|
|
}
|
|
fn sysv(f: extern "sysv64" fn(usize, ...)) {
|
|
//~^ 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
|
|
f(22, 44);
|
|
}
|
|
fn win(f: extern "win64" fn(usize, ...)) {
|
|
//~^ 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
|
|
f(22, 44);
|
|
}
|
|
|
|
fn main() {}
|