]> git.lizzy.rs Git - rust.git/blob - src/test/codegen/vec-clear.rs
Suggest defining type parameter when appropriate
[rust.git] / src / test / codegen / vec-clear.rs
1 // ignore-debug: the debug assertions get in the way
2 // compile-flags: -O
3
4 #![crate_type = "lib"]
5
6 // CHECK-LABEL: @vec_clear
7 #[no_mangle]
8 pub fn vec_clear(x: &mut Vec<u32>) {
9     // CHECK-NOT: load
10     // CHECK-NOT: icmp
11     x.clear()
12 }