3 // We previously used to generate a 3-armed boolean `SwitchInt` in the
4 // MIR of the function `foo` below. #33583 changed rustc to
5 // generate an `If` terminator instead. This test is to just ensure
6 // sanity in that we generate an if-else chain giving the correct
9 fn foo(x: bool, y: bool) -> u32 {
18 assert_eq!(foo(false, true), 0);
19 assert_eq!(foo(false, false), 0);
20 assert_eq!(foo(true, false), 1);
21 assert_eq!(foo(true, true), 2);