1 // Checks if the correct annotation for the efiapi ABI is passed to llvm.
3 // revisions:x86_64 i686 arm
5 // min-llvm-version 9.0
7 //[x86_64] compile-flags: --target x86_64-unknown-uefi
8 //[i686] compile-flags: --target i686-unknown-linux-musl
9 //[arm] compile-flags: --target armv7r-none-eabi
10 // compile-flags: -C no-prepopulate-passes
12 #![crate_type = "lib"]
13 #![feature(no_core, lang_items, abi_efiapi)]
23 //x86_64: define win64cc void @has_efiapi
24 //i686: define void @has_efiapi
25 //arm: define void @has_efiapi
27 pub extern "efiapi" fn has_efiapi() {}