summaryrefslogtreecommitdiffstats
path: root/src/test/mir-opt/while_let_loops.change_loop_body.PreCodegen.after.mir
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/mir-opt/while_let_loops.change_loop_body.PreCodegen.after.mir')
-rw-r--r--src/test/mir-opt/while_let_loops.change_loop_body.PreCodegen.after.mir17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/test/mir-opt/while_let_loops.change_loop_body.PreCodegen.after.mir b/src/test/mir-opt/while_let_loops.change_loop_body.PreCodegen.after.mir
new file mode 100644
index 000000000..15b0aece8
--- /dev/null
+++ b/src/test/mir-opt/while_let_loops.change_loop_body.PreCodegen.after.mir
@@ -0,0 +1,17 @@
+// MIR for `change_loop_body` after PreCodegen
+
+fn change_loop_body() -> () {
+ let mut _0: (); // return place in scope 0 at $DIR/while_let_loops.rs:+0:27: +0:27
+ let mut _1: i32; // in scope 0 at $DIR/while_let_loops.rs:+1:9: +1:15
+ scope 1 {
+ debug _x => _1; // in scope 1 at $DIR/while_let_loops.rs:+1:9: +1:15
+ scope 2 {
+ }
+ }
+
+ bb0: {
+ StorageLive(_1); // scope 0 at $DIR/while_let_loops.rs:+1:9: +1:15
+ StorageDead(_1); // scope 0 at $DIR/while_let_loops.rs:+6:1: +6:2
+ return; // scope 0 at $DIR/while_let_loops.rs:+6:2: +6:2
+ }
+}