2019-10-24 10:29:29 -05:00
|
|
|
// Checks if the correct annotation for the efiapi ABI is passed to llvm.
|
|
|
|
|
2019-11-04 07:53:05 -06:00
|
|
|
// revisions:x86_64 i686 arm
|
2019-10-25 09:44:21 -05:00
|
|
|
|
2020-07-19 05:45:31 -05:00
|
|
|
// min-llvm-version: 9.0
|
2019-10-26 16:05:13 -05:00
|
|
|
|
2019-10-25 09:44:21 -05:00
|
|
|
//[x86_64] compile-flags: --target x86_64-unknown-uefi
|
|
|
|
//[i686] compile-flags: --target i686-unknown-linux-musl
|
|
|
|
//[arm] compile-flags: --target armv7r-none-eabi
|
2019-10-24 10:29:29 -05:00
|
|
|
// compile-flags: -C no-prepopulate-passes
|
|
|
|
|
|
|
|
#![crate_type = "lib"]
|
2019-10-25 09:44:21 -05:00
|
|
|
#![feature(no_core, lang_items, abi_efiapi)]
|
|
|
|
#![no_core]
|
2019-10-24 10:29:29 -05:00
|
|
|
|
2019-10-25 09:44:21 -05:00
|
|
|
#[lang="sized"]
|
|
|
|
trait Sized { }
|
|
|
|
#[lang="freeze"]
|
|
|
|
trait Freeze { }
|
|
|
|
#[lang="copy"]
|
|
|
|
trait Copy { }
|
2019-10-24 10:29:29 -05:00
|
|
|
|
2019-10-25 09:44:21 -05:00
|
|
|
//x86_64: define win64cc void @has_efiapi
|
|
|
|
//i686: define void @has_efiapi
|
|
|
|
//arm: define void @has_efiapi
|
2019-10-24 10:29:29 -05:00
|
|
|
#[no_mangle]
|
2019-10-25 09:44:21 -05:00
|
|
|
pub extern "efiapi" fn has_efiapi() {}
|