Home | History | Annotate | Download | only in regress_37658666
      1 // Copyright (c) 2017, the R8 project authors. Please see the AUTHORS file
      2 // for details. All rights reserved. Use of this source code is governed by a
      3 // BSD-style license that can be found in the LICENSE file.
      4 package regress_37658666;
      5 
      6 class Float {
      7   int cmp(float a, float b) {
      8     if (a > b)
      9       return 1;
     10     if (a == b)
     11       return 0;
     12     return -1;
     13   }
     14 }
     15 
     16 public class Regress {
     17 
     18   public static boolean check(int i, int j) {
     19     return i == j;
     20   }
     21 
     22   public static void main(String[] args) {
     23     Float f = new Float();
     24     System.out.println(check(0, f.cmp(+0f, -0f)));
     25   }
     26 }