mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
16 lines
254 B
Rust
16 lines
254 B
Rust
//@ compile-flags: -Copt-level=0
|
|
//@ only-x86_64
|
|
//@ ignore-windows
|
|
//@ min-llvm-version: 19
|
|
//@ build-pass
|
|
|
|
#[repr(align(536870912))]
|
|
pub struct A(i64);
|
|
|
|
#[allow(improper_ctypes_definitions)]
|
|
pub extern "C" fn foo(x: A) {}
|
|
|
|
fn main() {
|
|
foo(A(0));
|
|
}
|