]> git.lizzy.rs Git - rust.git/blob - src/test/ui/align-with-extern-c-fn.rs
Merge commit 'c2c07fa9d095931eb5684a42942a7b573a0c5238' into clippyup
[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))]
11 pub struct A(i64);
12
13 pub extern "C" fn foo(x: A) {}
14
15 fn main() {
16     foo(A(0));
17 }