2025-02-12 01:22:27 +00:00
|
|
|
//@ only-x86_64
|
|
|
|
|
|
|
|
fn efiapi(f: extern "efiapi" fn(usize, ...)) {
|
2025-02-12 18:35:32 +00:00
|
|
|
//~^ ERROR: using calling conventions other than `C` or `cdecl` for varargs functions is unstable
|
2025-02-12 01:22:27 +00:00
|
|
|
f(22, 44);
|
|
|
|
}
|
|
|
|
fn sysv(f: extern "sysv64" fn(usize, ...)) {
|
2025-02-12 18:35:32 +00:00
|
|
|
//~^ ERROR: using calling conventions other than `C` or `cdecl` for varargs functions is unstable
|
2025-02-12 01:22:27 +00:00
|
|
|
f(22, 44);
|
|
|
|
}
|
|
|
|
fn win(f: extern "win64" fn(usize, ...)) {
|
2025-02-12 18:35:32 +00:00
|
|
|
//~^ ERROR: using calling conventions other than `C` or `cdecl` for varargs functions is unstable
|
2025-02-12 01:22:27 +00:00
|
|
|
f(22, 44);
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|