aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/torture/lazybooleanexpr_function.rs
blob: 1be51274d03d6ba8cf6d38b161fa0953e9f3477e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
fn foo() -> bool {
    return true;
}

fn bar() -> bool {
    return false;
}



fn main() {
    let _a = true && foo();
    let _b = true || bar();
}