2019-07-27 00:54:25 +03:00
|
|
|
// run-pass
|
|
|
|
|
2018-09-14 12:20:28 +02:00
|
|
|
#![allow(stable_features)]
|
|
|
|
#![allow(unused_variables)]
|
|
|
|
|
2017-12-26 18:41:56 +09:00
|
|
|
// #45662
|
|
|
|
|
|
|
|
#![feature(repr_align)]
|
|
|
|
|
2019-11-13 17:00:47 +01:00
|
|
|
#[repr(align(16))]
|
2022-07-25 22:36:03 +02:00
|
|
|
pub struct A(#[allow(unused_tuple_struct_fields)] i64);
|
2017-12-26 18:41:56 +09:00
|
|
|
|
2020-05-28 15:57:09 +01:00
|
|
|
#[allow(improper_ctypes_definitions)]
|
2017-12-26 18:41:56 +09:00
|
|
|
pub extern "C" fn foo(x: A) {}
|
|
|
|
|
2018-01-15 01:48:19 +02:00
|
|
|
fn main() {
|
|
|
|
foo(A(0));
|
|
|
|
}
|