summaryrefslogtreecommitdiffstats
path: root/src/test/mir-opt/equal_true.rs
blob: 994cd194a45e259934639a94135a8c88b9af9100 (plain)
1
2
3
4
5
6
7
8
9
// EMIT_MIR equal_true.opt.InstCombine.diff

fn opt(x: bool) -> i32 {
    if x == true { 0 } else { 1 }
}

fn main() {
    opt(true);
}