summaryrefslogtreecommitdiffstats
path: root/src/test/mir-opt/unreachable.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/mir-opt/unreachable.rs')
-rw-r--r--src/test/mir-opt/unreachable.rs20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/test/mir-opt/unreachable.rs b/src/test/mir-opt/unreachable.rs
deleted file mode 100644
index 6098b525b..000000000
--- a/src/test/mir-opt/unreachable.rs
+++ /dev/null
@@ -1,20 +0,0 @@
-enum Empty {}
-
-fn empty() -> Option<Empty> {
- None
-}
-
-// EMIT_MIR unreachable.main.UnreachablePropagation.diff
-fn main() {
- if let Some(_x) = empty() {
- let mut _y;
-
- if true {
- _y = 21;
- } else {
- _y = 42;
- }
-
- match _x { }
- }
-}