summaryrefslogtreecommitdiffstats
path: root/src/test/codegen/issue-98294-get-mut-copy-from-slice-opt.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/codegen/issue-98294-get-mut-copy-from-slice-opt.rs')
-rw-r--r--src/test/codegen/issue-98294-get-mut-copy-from-slice-opt.rs19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/test/codegen/issue-98294-get-mut-copy-from-slice-opt.rs b/src/test/codegen/issue-98294-get-mut-copy-from-slice-opt.rs
deleted file mode 100644
index 7da29cd79..000000000
--- a/src/test/codegen/issue-98294-get-mut-copy-from-slice-opt.rs
+++ /dev/null
@@ -1,19 +0,0 @@
-// min-llvm-version: 15.0.0
-// ignore-debug: The debug assertions get in the way
-// compile-flags: -O
-
-#![crate_type = "lib"]
-
-// There should be no calls to panic / len_mismatch_fail.
-
-#[no_mangle]
-pub fn test(a: &mut [u8], offset: usize, bytes: &[u8]) {
- // CHECK-LABEL: @test(
- // CHECK-NOT: call
- // CHECK: call void @llvm.memcpy
- // CHECK-NOT: call
- // CHECK: }
- if let Some(dst) = a.get_mut(offset..offset + bytes.len()) {
- dst.copy_from_slice(bytes);
- }
-}