summaryrefslogtreecommitdiffstats
path: root/tests/ui/numbers-arithmetic/float.rs
blob: d55c05857b6f89662f1d44d4f0c8c1afcdfa4999 (plain)
1
2
3
4
5
6
7
8
9
// run-pass
pub fn main() {
    let pi = 3.1415927f64;
    println!("{}", -pi * (pi + 2.0 / pi) - pi * 5.0);
    if pi == 5.0 || pi < 10.0 || pi <= 2.0 || pi != 22.0 / 7.0 || pi >= 10.0
           || pi > 1.0 {
        println!("yes");
    }
}