about summary refs log tree commit diff
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2023-10-16 20:03:43 +0000
committerCamille GILLOT <gillot.camille@gmail.com>2023-10-19 15:51:54 +0000
commitd24e44a07eae5bf8f8f86b15fe85f4405889008b (patch)
tree4b10cf5407af82bfd1b07745fe3a9223ace41677
parentad057d43975e8ccdb55cc01d43837ce6f811b4b4 (diff)
downloadrust-d24e44a07eae5bf8f8f86b15fe85f4405889008b.tar.gz
rust-d24e44a07eae5bf8f8f86b15fe85f4405889008b.zip
FileCheck lower_slice_len.
-rw-r--r--tests/mir-opt/lower_slice_len.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/mir-opt/lower_slice_len.rs b/tests/mir-opt/lower_slice_len.rs
index 88492154d23..7b967a16588 100644
--- a/tests/mir-opt/lower_slice_len.rs
+++ b/tests/mir-opt/lower_slice_len.rs
@@ -1,9 +1,10 @@
-// skip-filecheck
-// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
 // unit-test: LowerSliceLenCalls
+// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
 
 // EMIT_MIR lower_slice_len.bound.LowerSliceLenCalls.diff
 pub fn bound(index: usize, slice: &[u8]) -> u8 {
+    // CHECK-LABEL: fn bound(
+    // CHECK-NOT: ::len(
     if index < slice.len() {
         slice[index]
     } else {