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