summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/gvn.indirect_static.GVN.panic-unwind.diff
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-07 05:48:42 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-07 05:48:42 +0000
commitcec1877e180393eba0f6ddb0cf97bf3a791631c7 (patch)
tree47b4dac2a9dd9a40c30c251b4d4a72d7ccf77e9f /tests/mir-opt/gvn.indirect_static.GVN.panic-unwind.diff
parentAdding debian version 1.74.1+dfsg1-1. (diff)
downloadrustc-cec1877e180393eba0f6ddb0cf97bf3a791631c7.tar.xz
rustc-cec1877e180393eba0f6ddb0cf97bf3a791631c7.zip
Merging upstream version 1.75.0+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/mir-opt/gvn.indirect_static.GVN.panic-unwind.diff')
-rw-r--r--tests/mir-opt/gvn.indirect_static.GVN.panic-unwind.diff19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/mir-opt/gvn.indirect_static.GVN.panic-unwind.diff b/tests/mir-opt/gvn.indirect_static.GVN.panic-unwind.diff
new file mode 100644
index 000000000..f853942bb
--- /dev/null
+++ b/tests/mir-opt/gvn.indirect_static.GVN.panic-unwind.diff
@@ -0,0 +1,19 @@
+- // MIR for `indirect_static` before GVN
++ // MIR for `indirect_static` after GVN
+
+ fn indirect_static() -> () {
+ let mut _0: ();
+ let mut _1: &std::option::Option<u8>;
+ let mut _2: u8;
+
+ bb0: {
+ _1 = const {ALLOC0: &Option<u8>};
+ _2 = (((*_1) as variant#1).0: u8);
+ return;
+ }
+ }
+
+ ALLOC0 (static: A, size: 2, align: 1) {
+ 00 __ │ .░
+ }
+