summary refs log tree commit diff
path: root/tests/codegen/vec-iter-collect-len.rs
blob: 3a0d6c3091927282a06655b801cf79cec4502edb (plain)
1
2
3
4
5
6
7
8
9
10
11
// ignore-debug: the debug assertions get in the way
// compile-flags: -O
#![crate_type="lib"]

#[no_mangle]
pub fn get_len() -> usize {
    // CHECK-LABEL: @get_len
    // CHECK-NOT: call
    // CHECK-NOT: invoke
    [1, 2, 3].iter().collect::<Vec<_>>().len()
}