blob: 8aeee5859d0adedcf8be1436101ebe03aa35e840 [file] [log] [blame]
// Checks if the correct annotation for the efiapi ABI is passed to llvm.
// revisions:x86_64 i686 arm
// min-llvm-version 9.0
//[x86_64] compile-flags: --target x86_64-unknown-uefi
//[i686] compile-flags: --target i686-unknown-linux-musl
//[arm] compile-flags: --target armv7r-none-eabi
// compile-flags: -C no-prepopulate-passes
#![crate_type = "lib"]
#![feature(no_core, lang_items, abi_efiapi)]
#![no_core]
#[lang="sized"]
trait Sized { }
#[lang="freeze"]
trait Freeze { }
#[lang="copy"]
trait Copy { }
//x86_64: define win64cc void @has_efiapi
//i686: define void @has_efiapi
//arm: define void @has_efiapi
#[no_mangle]
pub extern "efiapi" fn has_efiapi() {}