]> git.lizzy.rs Git - rust.git/blob - src/test/mir-opt/equal_true.rs
Merge commit '05677b6bd6c938ed760835d9b1f6514992654ae3' into sync_cg_clif-2021-08-06
[rust.git] / src / test / mir-opt / equal_true.rs
1 // EMIT_MIR equal_true.opt.InstCombine.diff
2
3 fn opt(x: bool) -> i32 {
4     if x == true { 0 } else { 1 }
5 }
6
7 fn main() {
8     opt(true);
9 }