summaryrefslogtreecommitdiffstats
path: root/src/test/codegen/fatptr.rs
blob: 1c49b5714ef51df098a9e888532696a1c825664b (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;
}