mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 11:44:28 +00:00
20 lines
831 B
Rust
20 lines
831 B
Rust
#![feature(abi_efiapi)]
|
|
|
|
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() {}
|