aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/torture/conditional.rs
blob: 2bb3a95f033ca6d73ac44e3b95b95b2ecea7cd15 (plain)
1
2
3
4
5
6
7
8
9
10
11
fn main() {
    let mut x = 5;

    if x == 5 {
        x = 1;
    } else if x == 3 {
        x = 2;
    } else {
        x = 3;
    }
}