2024-02-22 06:10:29 -06:00
|
|
|
//@ only-x86_64
|
2018-01-20 10:09:55 -06:00
|
|
|
|
2024-02-22 06:10:29 -06:00
|
|
|
//@ compile-flags: -C no-prepopulate-passes
|
2018-01-20 10:09:55 -06:00
|
|
|
|
|
|
|
#![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
|
|
|
}
|