]> git.lizzy.rs Git - rust.git/blob - src/test/ui/align-with-extern-c-fn.rs
Rollup merge of #94577 - RalfJung:simd-miri, 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))]
11 pub struct A(i64);
12
13 #[allow(improper_ctypes_definitions)]
14 pub extern "C" fn foo(x: A) {}
15
16 fn main() {
17     foo(A(0));
18 }