rust/tests/mir-opt/pre-codegen/no_inlined_clone.rs

13 lines
245 B
Rust

#![crate_type = "lib"]
// EMIT_MIR no_inlined_clone.{impl#0}-clone.PreCodegen.after.mir
// CHECK-LABEL: ::clone(
// CHECK-NOT: inlined clone::impls::<impl Clone for {{.*}}>::clone
// CHECK: return;
#[derive(Clone)]
struct Foo {
a: i32,
}