aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/torture/if_elif.rs
blob: a89ad5eb02f0e15124466e5cc3ae6663c3219892 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
fn foo() -> bool {
    true
}

fn bar() -> bool {
    false
}

struct Foo1 {
    one: i32
}


fn main() {
    if foo() {
    } else if bar() {
        let a = Foo1{one: 1};
        a.one;
    }
}