summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/simplify_match.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/mir-opt/simplify_match.rs')
-rw-r--r--tests/mir-opt/simplify_match.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/mir-opt/simplify_match.rs b/tests/mir-opt/simplify_match.rs
new file mode 100644
index 000000000..216203f9f
--- /dev/null
+++ b/tests/mir-opt/simplify_match.rs
@@ -0,0 +1,10 @@
+#[inline(never)]
+fn noop() {}
+
+// EMIT_MIR simplify_match.main.ConstProp.diff
+fn main() {
+ match { let x = false; x } {
+ true => noop(),
+ false => {},
+ }
+}