diff options
Diffstat (limited to 'src/test/codegen/noalias-flag.rs')
| -rw-r--r-- | src/test/codegen/noalias-flag.rs | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/test/codegen/noalias-flag.rs b/src/test/codegen/noalias-flag.rs deleted file mode 100644 index a9ec61e286d..00000000000 --- a/src/test/codegen/noalias-flag.rs +++ /dev/null @@ -1,23 +0,0 @@ -// compile-flags: -O -Zmutable-noalias=no - -#![crate_type = "lib"] - -// `-Zmutable-noalias=no` should disable noalias on mut refs... - -// CHECK-LABEL: @test_mut_ref( -// CHECK-NOT: noalias -// CHECK-SAME: %x -#[no_mangle] -pub fn test_mut_ref(x: &mut i32) -> &mut i32 { - x -} - -// ...but not on shared refs - -// CHECK-LABEL: @test_ref( -// CHECK-SAME: noalias -// CHECK-SAME: %x -#[no_mangle] -pub fn test_ref(x: &i32) -> &i32 { - x -} |
