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

fn bar() {}

struct Foo1 {
    one: i32
}


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

}