mirror of
https://git.proxmox.com/git/rustc
synced 2025-05-02 07:36:59 +00:00
11 lines
178 B
Rust
11 lines
178 B
Rust
// compile-flags: -O
|
|
|
|
#![crate_type = "lib"]
|
|
|
|
// CHECK-LABEL: @copy_to_vec
|
|
#[no_mangle]
|
|
fn copy_to_vec(s: &[u64]) -> Vec<u64> {
|
|
s.to_vec()
|
|
// CHECK: call void @llvm.memcpy
|
|
}
|