about summary refs log tree commit diff
path: root/tests/ui/abi/large-byval-align.rs
blob: 69418e1cbc7b89d38a80878e40819e61a742ef3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//@ compile-flags: -Copt-level=0
//@ only-x86_64
//@ build-pass
//@ ignore-backends: gcc

#[repr(align(536870912))]
pub struct A(i64);

#[allow(improper_ctypes_definitions)]
pub extern "C" fn foo(x: A) {}

fn main() {
    foo(A(0));
}