about summary refs log tree commit diff
path: root/tests/codegen/fatptr.rs
blob: 0f13e66fbad0a997b894d8b8f73e37ab58c06a02 (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;
}