summaryrefslogtreecommitdiffstats
path: root/src/test/codegen/to_vec.rs
blob: 60dc4efcb625151b6e508e24e18380f3ba5fdf91 (plain)
1
2
3
4
5
6
7
8
9
10
// 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
}