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)]
|
|
|
|
|
2019-11-13 10:00:47 -06:00
|
|
|
#[repr(align(16))]
|
2022-07-25 15:36:03 -05:00
|
|
|
pub struct A(#[allow(unused_tuple_struct_fields)] i64);
|
2017-12-26 03:41:56 -06:00
|
|
|
|
2020-05-28 09:57:09 -05:00
|
|
|
#[allow(improper_ctypes_definitions)]
|
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));
|
|
|
|
}
|