]> git.lizzy.rs Git - rust.git/blob - src/test/ui/numbers-arithmetic/float.rs
Merge commit 'd3a2366ee877075c59b38bd8ced55f224fc7ef51' into sync_cg_clif-2022-07-26
[rust.git] / src / test / ui / numbers-arithmetic / float.rs
1 // run-pass
2 pub fn main() {
3     let pi = 3.1415927f64;
4     println!("{}", -pi * (pi + 2.0 / pi) - pi * 5.0);
5     if pi == 5.0 || pi < 10.0 || pi <= 2.0 || pi != 22.0 / 7.0 || pi >= 10.0
6            || pi > 1.0 {
7         println!("yes");
8     }
9 }