2019-07-26 16:54:25 -05:00
|
|
|
// run-pass
|
|
|
|
|
2018-09-14 05:20:28 -05:00
|
|
|
#![allow(stable_features)]
|
|
|
|
#![allow(unused_variables)]
|
|
|
|
|
2017-12-26 03:41:56 -06:00
|
|
|
// #45662
|
|
|
|
|
|
|
|
#![feature(repr_align)]
|
|
|
|
|
|
|
|
#[repr(align(16))]
|
2018-01-14 17:48:19 -06:00
|
|
|
pub struct A(i64);
|
2017-12-26 03:41:56 -06:00
|
|
|
|
|
|
|
pub extern "C" fn foo(x: A) {}
|
|
|
|
|
2018-01-14 17:48:19 -06:00
|
|
|
fn main() {
|
|
|
|
foo(A(0));
|
|
|
|
}
|