]> git.lizzy.rs Git - rust.git/blob - src/test/codegen/abi-efiapi.rs
Auto merge of #69030 - Dylan-DPC:rollup-t9uk7vc, r=Dylan-DPC
[rust.git] / src / test / codegen / abi-efiapi.rs
1 // Checks if the correct annotation for the efiapi ABI is passed to llvm.
2
3 // revisions:x86_64 i686 arm
4
5 // min-llvm-version 9.0
6
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
11
12 #![crate_type = "lib"]
13 #![feature(no_core, lang_items, abi_efiapi)]
14 #![no_core]
15
16 #[lang="sized"]
17 trait Sized { }
18 #[lang="freeze"]
19 trait Freeze { }
20 #[lang="copy"]
21 trait Copy { }
22
23 //x86_64: define win64cc void @has_efiapi
24 //i686: define void @has_efiapi
25 //arm: define void @has_efiapi
26 #[no_mangle]
27 pub extern "efiapi" fn has_efiapi() {}