aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/torture/deadcode2.rs
blob: ba7d5f015e967cc47b089e1501f08b826ae983fa (plain)
1
2
3
4
5
6
7
8
9
10
fn foo() -> i32 {
    return 1;

    let a = -1; // { dg-warning "unreachable statement" }
    a // { dg-warning "unreachable expression" }
}

fn main() {
    foo();
}