summary refs log tree commit diff
path: root/tests/codegen/string-push.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/codegen/string-push.rs')
-rw-r--r--tests/codegen/string-push.rs11
1 files changed, 0 insertions, 11 deletions
diff --git a/tests/codegen/string-push.rs b/tests/codegen/string-push.rs
deleted file mode 100644
index cf5f6bb1aa3..00000000000
--- a/tests/codegen/string-push.rs
+++ /dev/null
@@ -1,11 +0,0 @@
-//! Check that `String::push` is optimized enough not to call `memcpy`.
-
-//@ compile-flags: -O
-#![crate_type = "lib"]
-
-// CHECK-LABEL: @string_push_does_not_call_memcpy
-#[no_mangle]
-pub fn string_push_does_not_call_memcpy(s: &mut String, ch: char) {
-    // CHECK-NOT: call void @llvm.memcpy
-    s.push(ch);
-}