3 // ignore-debug: the debug assertions add extra comparisons
8 // CHECK-LABEL: @slice_iter_len_eq_zero
10 pub fn slice_iter_len_eq_zero(y: std::slice::Iter<'_, Demo>) -> bool {
12 // CHECK: %2 = icmp eq {{i8\*|ptr}} {{%1|%0}}, {{%1|%0}}
17 // CHECK-LABEL: @array_into_iter_len_eq_zero
19 pub fn array_into_iter_len_eq_zero(y: std::array::IntoIter<Demo, 123>) -> bool {
20 // This should be able to just check that the indexes are equal, and not
21 // need any subtractions or comparisons to handle `start > end`.
25 // CHECK: %1 = icmp eq {{i16|i32|i64}}