2023-05-06 22:20:58 -05:00
|
|
|
// unit-test: InstSimplify
|
|
|
|
// EMIT_MIR not_equal_false.opt.InstSimplify.diff
|
2020-08-29 07:16:39 -05:00
|
|
|
|
2020-10-03 04:18:24 -05:00
|
|
|
fn opt(x: bool) -> u32 {
|
|
|
|
if x != false { 0 } else { 1 }
|
2020-08-29 07:16:39 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
2020-10-03 04:18:24 -05:00
|
|
|
opt(false);
|
2020-08-29 07:16:39 -05:00
|
|
|
}
|