]> git.lizzy.rs Git - rust.git/blob - src/test/codegen/to_vec.rs
Merge commit 'ea199bacef07213dbe008841b89c450e3bf0c638' into rustfmt-sync
[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 }