2018-01-20 10:09:55 -06:00
|
|
|
//@ only-x86_64
|
|
|
|
|
|
|
|
//@ compile-flags: -C no-prepopulate-passes
|
|
|
|
|
|
|
|
#![crate_type = "lib"]
|
|
|
|
|
|
|
|
pub struct S24 {
|
2024-05-28 23:11:20 -05:00
|
|
|
a: i8,
|
|
|
|
b: i8,
|
|
|
|
c: i8,
|
2018-01-20 10:09:55 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
pub struct S48 {
|
2024-05-28 23:11:20 -05:00
|
|
|
a: i16,
|
|
|
|
b: i16,
|
|
|
|
c: i8,
|
2018-01-20 10:09:55 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
// CHECK: i24 @struct_24_bits(i24
|
|
|
|
#[no_mangle]
|
|
|
|
pub extern "sysv64" fn struct_24_bits(a: S24) -> S24 {
|
2024-05-28 23:11:20 -05:00
|
|
|
a
|
2018-01-20 10:09:55 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
// CHECK: i48 @struct_48_bits(i48
|
|
|
|
#[no_mangle]
|
|
|
|
pub extern "sysv64" fn struct_48_bits(a: S48) -> S48 {
|
2024-05-28 23:11:20 -05:00
|
|
|
a
|
2018-01-20 10:09:55 -06:00
|
|
|
}
|