mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
18 lines
264 B
Rust
18 lines
264 B
Rust
//@ run-pass
|
|
|
|
#![allow(stable_features)]
|
|
#![allow(unused_variables)]
|
|
|
|
// #45662
|
|
|
|
#![feature(repr_align)]
|
|
|
|
#[repr(align(16))]
|
|
pub struct A(#[allow(dead_code)] i64);
|
|
|
|
#[allow(improper_ctypes_definitions)]
|
|
pub extern "C" fn foo(x: A) {}
|
|
|
|
fn main() {
|
|
foo(A(0));
|
|
}
|