aboutsummaryrefslogtreecommitdiff
path: root/src/test/run-pass/float2.rs
blob: 9cc3a8ca9cd31a5bab77ac3cc88a43398af0da0b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// xfail-boot
fn main() {
  auto a = 1.5e6;
  auto b = 1.5E6;
  auto c = 1e6;
  auto d = 1E6;
  auto e = 3.0f32;
  auto f = 5.9f64;
  auto g = 1.e6f32;
  auto h = 1.0e7f64;
  auto i = 1.0E7f64;
  auto j = 3.1e+9;
  auto k = 3.2e-10;
 
  check(a == b);
  check(c < b);
  check(c == d);
  check(e < g);
  check(f < h);
  check(g == 1000000.0f32);
  check(h == i);
  check(j > k);
  check(k < a);
}