diff options
Diffstat (limited to 'tests/codegen/noalias-flag.rs')
| -rw-r--r-- | tests/codegen/noalias-flag.rs | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/tests/codegen/noalias-flag.rs b/tests/codegen/noalias-flag.rs deleted file mode 100644 index 67ba68ee6f8..00000000000 --- a/tests/codegen/noalias-flag.rs +++ /dev/null @@ -1,23 +0,0 @@ -//@ compile-flags: -Copt-level=3 -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 -} |
