diff options
Diffstat (limited to 'src/test/mir-opt/simplify_match.rs')
-rw-r--r-- | src/test/mir-opt/simplify_match.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/mir-opt/simplify_match.rs b/src/test/mir-opt/simplify_match.rs new file mode 100644 index 000000000..216203f9f --- /dev/null +++ b/src/test/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 => {}, + } +} |