1 // compile-flags: -O -Zmutable-noalias=no
5 // `-Zmutable-noalias=no` should disable noalias on mut refs...
7 // CHECK-LABEL: @test_mut_ref(
11 pub fn test_mut_ref(x: &mut i32) -> &mut i32 {
15 // ...but not on shared refs
17 // CHECK-LABEL: @test_ref(
18 // CHECK-SAME: noalias
21 pub fn test_ref(x: &i32) -> &i32 {