diff options
Diffstat (limited to '')
-rw-r--r-- | tests/mir-opt/instsimplify/intrinsic_asserts.generic.InstSimplify.diff | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/tests/mir-opt/instsimplify/intrinsic_asserts.generic.InstSimplify.diff b/tests/mir-opt/instsimplify/intrinsic_asserts.generic.InstSimplify.diff new file mode 100644 index 000000000..2ecacb5e3 --- /dev/null +++ b/tests/mir-opt/instsimplify/intrinsic_asserts.generic.InstSimplify.diff @@ -0,0 +1,33 @@ +- // MIR for `generic` before InstSimplify ++ // MIR for `generic` after InstSimplify + + fn generic() -> () { + let mut _0: (); + let _1: (); + let _2: (); + let _3: (); + + bb0: { + StorageLive(_1); + _1 = assert_inhabited::<T>() -> [return: bb1, unwind unreachable]; + } + + bb1: { + StorageDead(_1); + StorageLive(_2); + _2 = assert_zero_valid::<T>() -> [return: bb2, unwind unreachable]; + } + + bb2: { + StorageDead(_2); + StorageLive(_3); + _3 = assert_mem_uninitialized_valid::<T>() -> [return: bb3, unwind unreachable]; + } + + bb3: { + StorageDead(_3); + _0 = const (); + return; + } + } + |