diff --git a/tests/ui/c-variadic/variadic-ffi-2.rs b/tests/ui/c-variadic/variadic-ffi-2.rs index d370917b2f40..9cdc83ea3a0e 100644 --- a/tests/ui/c-variadic/variadic-ffi-2.rs +++ b/tests/ui/c-variadic/variadic-ffi-2.rs @@ -19,6 +19,12 @@ fn sysv(f: extern "sysv64" fn(usize, ...)) { fn win(f: extern "win64" fn(usize, ...)) { f(22, 44); } +#[cfg(any(target_arch = "arm", + target_arch = "aarch64", + target_arch = "riscv32", + target_arch = "riscv64", + target_arch = "x86", + target_arch = "x86_64"))] fn efiapi(f: extern "efiapi" fn(usize, ...)) { f(22, 44); }