about summary refs log tree commit diff
path: root/tests/ui/abi/large-byval-align.rs
blob: c1de841178fcd8def3e0cfafa17955b9a2c0bcaa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//@ 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));
}