Skip to content

Commit 1950f29

Browse files
committed
FileCheck issue_78442
1 parent 13fe05c commit 1950f29

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/mir-opt/inline/issue_78442.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// skip-filecheck
21
// compile-flags: -Z mir-opt-level=3 -Z inline-mir
32
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
43
#![crate_type = "lib"]
@@ -9,6 +8,11 @@ pub fn bar<P>(
98
// Error won't happen if "bar" is not generic
109
_baz: P,
1110
) {
11+
// CHECK-LABEL: fn bar(
12+
// CHECK: let mut {{.*}}: &fn() {foo};
13+
// CHECK: let {{.*}}: fn() {foo};
14+
// CHECK: (inlined hide_foo)
15+
// CHECK-NOT: inlined
1216
hide_foo()();
1317
}
1418

0 commit comments

Comments
 (0)