Skip to content

Commit

Permalink
FileCheck lower_slice_len.
Browse files Browse the repository at this point in the history
  • Loading branch information
cjgillot committed Oct 16, 2023
1 parent 9d420d4 commit f287381
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/mir-opt/lower_slice_len.rs
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down

0 comments on commit f287381

Please sign in to comment.