about summary refs log tree commit diff
path: root/src/test/codegen/vec-clear.rs
blob: b9ffce8b0cb3d180d269a2aab8587276bb60a08a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// 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()
}