about summary refs log tree commit diff
path: root/tests/ui/c-variadic/feature-gate-extended_varargs_abi_support.rs
blob: 58370bff2200e0385664ac3f35d8f8230435a9ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//@ only-x86_64

fn efiapi(f: extern "efiapi" fn(usize, ...)) {
    //~^ 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: using calling conventions other than `C` or `cdecl` for varargs functions is unstable
    f(22, 44);
}
fn win(f: extern "win64" fn(usize, ...)) {
    //~^ ERROR: using calling conventions other than `C` or `cdecl` for varargs functions is unstable
    f(22, 44);
}

fn main() {}