about summary refs log tree commit diff
path: root/tests/codegen-llvm/fatptr.rs
blob: 041807202b8414d04065f688049fc67360dad35f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//@ compile-flags: -C no-prepopulate-passes

#![crate_type = "lib"]

pub trait T {}

// CHECK-LABEL: @copy_fat_ptr
#[no_mangle]
pub fn copy_fat_ptr(x: &T) {
    // CHECK-NOT: extractvalue
    let x2 = x;
}