]> git.lizzy.rs Git - rust.git/blob - src/test/ui/align-with-extern-c-fn.rs
Auto merge of #65637 - ssomers:master, r=scottmcm
[rust.git] / src / test / ui / align-with-extern-c-fn.rs
1 // run-pass
2
3 #![allow(stable_features)]
4 #![allow(unused_variables)]
5
6 // #45662
7
8 #![feature(repr_align)]
9
10 #[repr(align(16), C)]
11 pub struct A(i64);
12
13 pub extern "C" fn foo(x: A) {}
14
15 fn main() {
16     foo(A(0));
17 }