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

fn bar() {}

fn baz(a: i32) {
    a;
}

struct Foo1 {
    one: i32
}


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

}