aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/torture/static_function.rs
blob: 8e3a379502373f1f4b60d09dc7ac4ebfb62acb00 (plain)
1
2
3
4
5
6
7
8
fn test(x: i32) -> i32 {
    return x + 1;
}

fn main() {
    let call_test = test(1);
    // { dg-warning "unused name" "" { target *-*-* } .-1 }
}