summaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/torture/block_expr3.rs
blob: 6914b6379d717e4bf524b3deb88162ab2d26e710 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
fn main() {
    let x = 111;

    let a = {
        // { dg-warning "unused name" "" { target *-*-* } .-1 }
        if x == 10 {
            123
        } else if x < 10 {
            456
        } else {
            789
        }
    };
}