summaryrefslogtreecommitdiffstats
path: root/tests/codegen/noalias-box-off.rs
blob: afd17c7c160749badb7a83c100317022f29badb7 (plain)
1
2
3
4
5
6
7
8
// compile-flags: -O -Z box-noalias=no

#![crate_type = "lib"]

// CHECK-LABEL: @box_should_not_have_noalias_if_disabled(
// CHECK-NOT: noalias
#[no_mangle]
pub fn box_should_not_have_noalias_if_disabled(_b: Box<u8>) {}