Skip to content

Commit eaabda7

Browse files
committed
FileCheck inline_shims.
1 parent 8fa8777 commit eaabda7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/mir-opt/inline/inline_shims.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
1-
// skip-filecheck
21
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
32
#![crate_type = "lib"]
43

54
// EMIT_MIR inline_shims.clone.Inline.diff
65
pub fn clone<A, B>(f: fn(A, B)) -> fn(A, B) {
6+
// CHECK-LABEL: fn clone(
7+
// CHECK: (inlined <fn(A, B) as Clone>::clone - shim(fn(A, B)))
78
f.clone()
89
}
910

1011
// EMIT_MIR inline_shims.drop.Inline.diff
1112
pub fn drop<A, B>(a: *mut Vec<A>, b: *mut Option<B>) {
13+
// CHECK-LABEL: fn drop(
14+
// CHECK: (inlined std::ptr::drop_in_place::<Option<B>> - shim(Some(Option<B>)))
1215
unsafe { std::ptr::drop_in_place(a) }
1316
unsafe { std::ptr::drop_in_place(b) }
1417
}

0 commit comments

Comments
 (0)