rust/tests/ui/abi/large-byval-align.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
210 B
Rust
Raw Permalink Normal View History

//@ compile-flags: -Copt-level=0
//@ only-x86_64
//@ 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));
}