]> git.lizzy.rs Git - rust.git/blob - tests/codegen/abi-x86_64_sysv.rs
Move /src/test to /tests
[rust.git] / tests / codegen / abi-x86_64_sysv.rs
1 // only-x86_64
2
3 // compile-flags: -C no-prepopulate-passes
4
5 #![crate_type = "lib"]
6
7 pub struct S24 {
8   a: i8,
9   b: i8,
10   c: i8,
11 }
12
13 pub struct S48 {
14   a: i16,
15   b: i16,
16   c: i8,
17 }
18
19 // CHECK: i24 @struct_24_bits(i24
20 #[no_mangle]
21 pub extern "sysv64" fn struct_24_bits(a: S24) -> S24 {
22   a
23 }
24
25 // CHECK: i48 @struct_48_bits(i48
26 #[no_mangle]
27 pub extern "sysv64" fn struct_48_bits(a: S48) -> S48 {
28   a
29 }