2024-03-29 18:41:57 -05:00
|
|
|
//@ compile-flags: -Copt-level=0
|
2024-04-14 08:44:17 -05:00
|
|
|
//@ only-x86_64
|
|
|
|
//@ ignore-windows
|
2024-07-24 09:03:36 -05:00
|
|
|
//@ min-llvm-version: 19
|
|
|
|
//@ build-pass
|
|
|
|
|
2024-03-29 18:21:25 -05:00
|
|
|
#[repr(align(536870912))]
|
|
|
|
pub struct A(i64);
|
|
|
|
|
2024-07-24 09:03:36 -05:00
|
|
|
#[allow(improper_ctypes_definitions)]
|
2024-03-29 18:21:25 -05:00
|
|
|
pub extern "C" fn foo(x: A) {}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
foo(A(0));
|
|
|
|
}
|