]> git.lizzy.rs Git - rust.git/blob - src/test/codegen/abi-sysv64.rs
Rollup merge of #69800 - tmiasko:address-g, r=nikic
[rust.git] / src / test / codegen / abi-sysv64.rs
1 // Checks if the correct annotation for the sysv64 ABI is passed to
2 // llvm. Also checks that the abi-sysv64 feature gate allows usage
3 // of the sysv64 abi.
4
5 // ignore-arm
6 // ignore-aarch64
7
8 // compile-flags: -C no-prepopulate-passes
9
10 #![crate_type = "lib"]
11
12 // CHECK: define x86_64_sysvcc i64 @has_sysv64_abi
13 #[no_mangle]
14 pub extern "sysv64" fn has_sysv64_abi(a: i64) -> i64 {
15     a * 2
16 }