summaryrefslogtreecommitdiffstats
path: root/tests/codegen/noalias-box-off.rs
blob: c82c53b2a489682d1d8823e0c84824245548ff9b (plain)
1
2
3
4
5
6
7
8
9
10
11
// 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);
}