rust/tests/codegen/vec-iter-collect-len.rs
Nikita Popov 31f5f033e9 Remove uses of no-system-llvm
It looks like none of these are actually needed.
2024-01-23 10:31:07 +01:00

12 lines
263 B
Rust

// 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()
}