mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-30 22:12:15 +00:00
19 lines
280 B
Rust
19 lines
280 B
Rust
// 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));
|
|
}
|