mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-30 22:12:15 +00:00
12 lines
259 B
Rust
12 lines
259 B
Rust
//@ compile-flags: -O -Z box-noalias=no
|
|
|
|
#![crate_type = "lib"]
|
|
|
|
// CHECK-LABEL: @box_should_not_have_noalias_if_disabled(
|
|
// CHECK-NOT: noalias
|
|
// CHECK-SAME: %foo)
|
|
#[no_mangle]
|
|
pub fn box_should_not_have_noalias_if_disabled(foo: Box<u8>) {
|
|
drop(foo);
|
|
}
|