]> git.lizzy.rs Git - rust.git/blob - tests/codegen/to_vec.rs
Rollup merge of #107248 - erikdesjardins:addrspace, r=oli-obk
[rust.git] / tests / 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 }