From 6d8fbc96ee74d7f9add4a89d989b71886b8722e3 Mon Sep 17 00:00:00 2001 From: Tamme Dittrich Date: Fri, 16 Aug 2024 12:55:51 +0200 Subject: [PATCH] Be very explicit about where to run test with `extern "efiapi"` --- tests/ui/c-variadic/variadic-ffi-2.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/ui/c-variadic/variadic-ffi-2.rs b/tests/ui/c-variadic/variadic-ffi-2.rs index d370917b2f406..9cdc83ea3a0e0 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); }