]> git.lizzy.rs Git - rust.git/blob - src/test/ui/c-variadic/feature-gate-extended_varargs_abi_support.rs
Cleanup message and bless tests
[rust.git] / src / test / ui / c-variadic / feature-gate-extended_varargs_abi_support.rs
1 #![feature(abi_efiapi)]
2
3 fn efiapi(f: extern "efiapi" fn(usize, ...)) {
4     //~^ ERROR: C-variadic function must have a compatible calling convention, like `C` or `cdecl`
5     //~^^ ERROR: using calling conventions other than `C` or `cdecl` for varargs functions is unstable
6     f(22, 44);
7 }
8 fn sysv(f: extern "sysv64" fn(usize, ...)) {
9     //~^ ERROR: C-variadic function must have a compatible calling convention, like `C` or `cdecl`
10     //~^^ ERROR: using calling conventions other than `C` or `cdecl` for varargs functions is unstable
11     f(22, 44);
12 }
13 fn win(f: extern "win64" fn(usize, ...)) {
14     //~^ ERROR: C-variadic function must have a compatible calling convention, like `C` or `cdecl`
15     //~^^ ERROR: using calling conventions other than `C` or `cdecl` for varargs functions is unstable
16     f(22, 44);
17 }
18
19 fn main() {}