rust/tests/crashes/121444.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
215 B
Rust
Raw Normal View History

//@ known-bug: #121444
//@ compile-flags: -Copt-level=0
//@ edition:2021
//@ only-x86_64
//@ ignore-windows
#[repr(align(536870912))]
pub struct A(i64);
pub extern "C" fn foo(x: A) {}
fn main() {
foo(A(0));
}