]> git.lizzy.rs Git - rust.git/blob - src/test/ui/repr/align-with-extern-c-fn.rs
Move some tests from `src/test/ui` to more reasonable places
[rust.git] / src / test / ui / repr / 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(#[allow(unused_tuple_struct_fields)] i64);
12
13 #[allow(improper_ctypes_definitions)]
14 pub extern "C" fn foo(x: A) {}
15
16 fn main() {
17     foo(A(0));
18 }