summaryrefslogtreecommitdiffstats
path: root/src/test/mir-opt/lower_intrinsics.f_unit.PreCodegen.before.mir
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:02:58 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:02:58 +0000
commit698f8c2f01ea549d77d7dc3338a12e04c11057b9 (patch)
tree173a775858bd501c378080a10dca74132f05bc50 /src/test/mir-opt/lower_intrinsics.f_unit.PreCodegen.before.mir
parentInitial commit. (diff)
downloadrustc-698f8c2f01ea549d77d7dc3338a12e04c11057b9.tar.xz
rustc-698f8c2f01ea549d77d7dc3338a12e04c11057b9.zip
Adding upstream version 1.64.0+dfsg1.upstream/1.64.0+dfsg1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/test/mir-opt/lower_intrinsics.f_unit.PreCodegen.before.mir')
-rw-r--r--src/test/mir-opt/lower_intrinsics.f_unit.PreCodegen.before.mir30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/test/mir-opt/lower_intrinsics.f_unit.PreCodegen.before.mir b/src/test/mir-opt/lower_intrinsics.f_unit.PreCodegen.before.mir
new file mode 100644
index 000000000..9a6c0457f
--- /dev/null
+++ b/src/test/mir-opt/lower_intrinsics.f_unit.PreCodegen.before.mir
@@ -0,0 +1,30 @@
+// MIR for `f_unit` before PreCodegen
+
+fn f_unit() -> () {
+ let mut _0: (); // return place in scope 0 at $DIR/lower_intrinsics.rs:+0:17: +0:17
+ let mut _1: (); // in scope 0 at $DIR/lower_intrinsics.rs:+1:16: +1:18
+ scope 1 (inlined f_dispatch::<()>) { // at $DIR/lower_intrinsics.rs:34:5: 34:19
+ debug t => _1; // in scope 1 at $DIR/lower_intrinsics.rs:+11:22: +11:23
+ let _2: (); // in scope 1 at $DIR/lower_intrinsics.rs:+13:9: +13:17
+ let mut _3: (); // in scope 1 at $DIR/lower_intrinsics.rs:+13:15: +13:16
+ scope 2 (inlined std::mem::size_of::<()>) { // at $DIR/lower_intrinsics.rs:45:8: 45:32
+ }
+ }
+
+ bb0: {
+ StorageLive(_1); // scope 0 at $DIR/lower_intrinsics.rs:+1:16: +1:18
+ StorageLive(_2); // scope 1 at $DIR/lower_intrinsics.rs:+13:9: +13:17
+ StorageLive(_3); // scope 1 at $DIR/lower_intrinsics.rs:+13:15: +13:16
+ _2 = f_zst::<()>(move _3) -> bb1; // scope 1 at $DIR/lower_intrinsics.rs:+13:9: +13:17
+ // mir::Constant
+ // + span: $DIR/lower_intrinsics.rs:46:9: 46:14
+ // + literal: Const { ty: fn(()) {f_zst::<()>}, val: Value(<ZST>) }
+ }
+
+ bb1: {
+ StorageDead(_3); // scope 1 at $DIR/lower_intrinsics.rs:+13:16: +13:17
+ StorageDead(_2); // scope 1 at $DIR/lower_intrinsics.rs:+13:17: +13:18
+ StorageDead(_1); // scope 0 at $DIR/lower_intrinsics.rs:+1:18: +1:19
+ return; // scope 0 at $DIR/lower_intrinsics.rs:+2:2: +2:2
+ }
+}