Skip to content

Commit

Permalink
Be very explicit about where to run test with extern "efiapi"
Browse files Browse the repository at this point in the history
  • Loading branch information
tdittr committed Aug 16, 2024
1 parent b2be5a8 commit cae32dc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/ui/c-variadic/variadic-ffi-2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit cae32dc

Please sign in to comment.