about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRyan Mehri <ryan.mehri1@gmail.com>2023-10-20 22:06:38 -0700
committerRyan Mehri <ryan.mehri1@gmail.com>2023-10-25 15:25:38 -0700
commit5cf65eb16a57469212a682d469829c082ec25fb2 (patch)
treead2ddcbefe826a7966e14031b22e3ef629dcc02e
parentbb695977de920f47eb87ccf7580bb04a6bd36350 (diff)
downloadrust-5cf65eb16a57469212a682d469829c082ec25fb2.tar.gz
rust-5cf65eb16a57469212a682d469829c082ec25fb2.zip
FileCheck issue_78442
-rw-r--r--tests/mir-opt/inline/issue_78442.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/mir-opt/inline/issue_78442.rs b/tests/mir-opt/inline/issue_78442.rs
index f83ed70d0db..f9a5234283a 100644
--- a/tests/mir-opt/inline/issue_78442.rs
+++ b/tests/mir-opt/inline/issue_78442.rs
@@ -1,4 +1,3 @@
-// skip-filecheck
 // compile-flags: -Z mir-opt-level=3 -Z inline-mir
 // EMIT_MIR_FOR_EACH_PANIC_STRATEGY
 #![crate_type = "lib"]
@@ -9,6 +8,11 @@ pub fn bar<P>(
     // Error won't happen if "bar" is not generic
     _baz: P,
 ) {
+    // CHECK-LABEL: fn bar(
+    // CHECK: let mut {{.*}}: &fn() {foo};
+    // CHECK: let {{.*}}: fn() {foo};
+    // CHECK: (inlined hide_foo)
+    // CHECK-NOT: inlined
     hide_foo()();
 }