mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
31f5f033e9
It looks like none of these are actually needed.
12 lines
263 B
Rust
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()
|
|
}
|