]> git.lizzy.rs Git - rust.git/blob - src/test/codegen/to_vec.rs
Merge commit 'e18101137866b79045fee0ef996e696e68c920b4' into clippyup
[rust.git] / src / test / codegen / to_vec.rs
1 // compile-flags: -O
2
3 #![crate_type = "lib"]
4
5 // CHECK-LABEL: @copy_to_vec
6 #[no_mangle]
7 fn copy_to_vec(s: &[u64]) -> Vec<u64> {
8   s.to_vec()
9   // CHECK: call void @llvm.memcpy
10 }