Skip to content

Commit f287381

Browse files
committed
FileCheck lower_slice_len.
1 parent 9d420d4 commit f287381

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/mir-opt/lower_slice_len.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
// skip-filecheck
2-
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
31
// unit-test: LowerSliceLenCalls
2+
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
43

54
// EMIT_MIR lower_slice_len.bound.LowerSliceLenCalls.diff
65
pub fn bound(index: usize, slice: &[u8]) -> u8 {
6+
// CHECK-LABEL: fn bound(
7+
// CHECK-NOT: ::len(
78
if index < slice.len() {
89
slice[index]
910
} else {

0 commit comments

Comments
 (0)