blob: 9e490e27ad17df34a21c18ac29ceae61d154b9e6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// run-pass
#![allow(stable_features)]
#![allow(unused_variables)]
// #45662
#![feature(repr_align)]
#[repr(align(16))]
pub struct A(#[allow(unused_tuple_struct_fields)] i64);
#[allow(improper_ctypes_definitions)]
pub extern "C" fn foo(x: A) {}
fn main() {
foo(A(0));
}
|