rust/src/test/run-pass/align-with-extern-c-fn.rs
2018-12-25 21:08:33 -07:00

16 lines
192 B
Rust

#![allow(stable_features)]
#![allow(unused_variables)]
// #45662
#![feature(repr_align)]
#[repr(align(16))]
pub struct A(i64);
pub extern "C" fn foo(x: A) {}
fn main() {
foo(A(0));
}