about summary refs log tree commit diff
diff options
context:
space:
mode:
authorCastilloDel <delcastillodelarosadaniel@gmail.com>2024-04-14 11:35:37 +0200
committerCastilloDel <delcastillodelarosadaniel@gmail.com>2024-04-14 11:35:37 +0200
commit853311c35811ea8a05baf97aae895b017b83cc23 (patch)
treed6f3f99eb189e4bc8340609d8a7aa313b729deef
parentf238eba6211635d80ff0c31e7a89e2d38e528cfc (diff)
downloadrust-853311c35811ea8a05baf97aae895b017b83cc23.tar.gz
rust-853311c35811ea8a05baf97aae895b017b83cc23.zip
Run filecheck on dest-prop/cycle.rs
-rw-r--r--tests/mir-opt/dest-prop/cycle.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/mir-opt/dest-prop/cycle.rs b/tests/mir-opt/dest-prop/cycle.rs
index e6663956d78..41d9dd81253 100644
--- a/tests/mir-opt/dest-prop/cycle.rs
+++ b/tests/mir-opt/dest-prop/cycle.rs
@@ -1,4 +1,3 @@
-// skip-filecheck
 // EMIT_MIR_FOR_EACH_PANIC_STRATEGY
 //! Tests that cyclic assignments don't hang DestinationPropagation, and result in reasonable code.
 //@ unit-test: DestinationPropagation
@@ -8,6 +7,10 @@ fn val() -> i32 {
 
 // EMIT_MIR cycle.main.DestinationPropagation.diff
 fn main() {
+    // CHECK-LABEL: main(
+    // CHECK: debug x => [[x:_.*]];
+    // CHECK: [[x]] = val()
+    // CHECK-NOT: [[x]] = {{_.*}};
     let mut x = val();
     let y = x;
     let z = y;