about summary refs log tree commit diff
path: root/tests/codegen/vec-len-invariant.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/codegen/vec-len-invariant.rs')
-rw-r--r--tests/codegen/vec-len-invariant.rs16
1 files changed, 0 insertions, 16 deletions
diff --git a/tests/codegen/vec-len-invariant.rs b/tests/codegen/vec-len-invariant.rs
deleted file mode 100644
index 033181c2bfb..00000000000
--- a/tests/codegen/vec-len-invariant.rs
+++ /dev/null
@@ -1,16 +0,0 @@
-//@ compile-flags: -Copt-level=3
-//@ only-64bit
-//
-// This test confirms that we do not reload the length of a Vec after growing it in push.
-
-#![crate_type = "lib"]
-
-// CHECK-LABEL: @should_load_once
-#[no_mangle]
-pub fn should_load_once(v: &mut Vec<u8>) {
-    // CHECK: load i64
-    // CHECK: call {{.*}}grow_one
-    // CHECK-NOT: load i64
-    // CHECK: add {{.*}}, 1
-    v.push(1);
-}