2023-10-16 12:36:39 -05:00
|
|
|
// skip-filecheck
|
2023-05-06 22:20:58 -05:00
|
|
|
// unit-test InstSimplify
|
2022-08-02 19:44:25 -05:00
|
|
|
|
2023-05-06 22:20:58 -05:00
|
|
|
// EMIT_MIR equal_true.opt.InstSimplify.diff
|
2020-09-03 12:48:27 -05:00
|
|
|
|
|
|
|
fn opt(x: bool) -> i32 {
|
|
|
|
if x == true { 0 } else { 1 }
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
opt(true);
|
|
|
|
}
|