about summary refs log tree commit diff
diff options
context:
space:
mode:
authorCastilloDel <delcastillodelarosadaniel@gmail.com>2024-04-14 11:36:24 +0200
committerCastilloDel <delcastillodelarosadaniel@gmail.com>2024-04-14 12:24:18 +0200
commitf0f867e2d3d220ae8a11bfe83d2545ec1a3a19d2 (patch)
tree1faabafc1e74f03561bb1ea86984e16bf54fb3a4
parent069209034dfdaf520dc14aa4f0bfab935da0032c (diff)
downloadrust-f0f867e2d3d220ae8a11bfe83d2545ec1a3a19d2.tar.gz
rust-f0f867e2d3d220ae8a11bfe83d2545ec1a3a19d2.zip
Run filecheck on dest-prop/simple.rs
-rw-r--r--tests/mir-opt/dest-prop/simple.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/mir-opt/dest-prop/simple.rs b/tests/mir-opt/dest-prop/simple.rs
index 4aa6b6a4876..203f44a3826 100644
--- a/tests/mir-opt/dest-prop/simple.rs
+++ b/tests/mir-opt/dest-prop/simple.rs
@@ -1,9 +1,12 @@
-// skip-filecheck
 // EMIT_MIR_FOR_EACH_PANIC_STRATEGY
 //! Copy of `nrvo-simple.rs`, to ensure that full dest-prop handles it too.
 //@ unit-test: DestinationPropagation
 // EMIT_MIR simple.nrvo.DestinationPropagation.diff
 fn nrvo(init: fn(&mut [u8; 1024])) -> [u8; 1024] {
+    // CHECK-LABEL: fn nrvo(
+    // CHECK: debug init => [[init:_.*]];
+    // CHECK-NOT: {{_.*}} = [[init]];
+    // CHECK: move [[init]](move {{_.*}})
     let mut buf = [0; 1024];
     init(&mut buf);
     buf