summaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/torture/stmt_with_block1.rs
blob: b6aa56cc2e67c1fbee3395f0b755ea7cc6212de4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
fn test(x: i32) -> i32 {
    if x > 1 { 1 } else { 2 };
    if x > 1 { 1; } else { 2; }

    { 3; }
    { 3 };

    { 3 }
}

fn main() {
    let a = test(0); // { dg-warning "unused name" }
}