Files
rust/tests/codegen-llvm/fatptr.rs
jyn 4b0cd8edd9 make a couple codegen-llvm tests compatible with 2021 edition
previously they failed for simple syntax reasons.
2026-07-16 12:23:20 +02:00

13 lines
210 B
Rust

//@ 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: &dyn T) {
// CHECK-NOT: extractvalue
let x2 = x;
}