2023-05-07 03:20:58 +00:00
|
|
|
// unit-test InstSimplify
|
2022-08-03 00:44:25 +00:00
|
|
|
|
2023-05-07 03:20:58 +00:00
|
|
|
// EMIT_MIR equal_true.opt.InstSimplify.diff
|
2020-09-03 17:48:27 +00:00
|
|
|
|
|
|
|
fn opt(x: bool) -> i32 {
|
|
|
|
if x == true { 0 } else { 1 }
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
opt(true);
|
|
|
|
}
|