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