Sign in
rust
/
rust
/
8eb7c58dbb7b32701af113bc58722d0d1fefb1eb
/
.
/
src
/
test
/
codegen
/
vec-clear.rs
blob: b9ffce8b0cb3d180d269a2aab8587276bb60a08a [
file
]
// ignore-debug: the debug assertions get in the way
// compile-flags: -O
#![
crate_type
=
"lib"
]
// CHECK-LABEL: @vec_clear
#[
no_mangle
]
pub
fn
vec_clear
(
x
:
&
mut
Vec
<
u32
>)
{
// CHECK-NOT: load
// CHECK-NOT: icmp
x
.
clear
()
}