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

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