blob: 1772f23c983835f0ac4e8f47c77fa250b4a7cd5e [file] [log] [blame]
// Copyright (c) 2017, the R8 project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
package floating_point_annotations;
public class FloatingPointValuedAnnotationTest {
@FloatingPointValuedAnnotation(doubleValue = -0d)
class A {
}
@FloatingPointValuedAnnotation(doubleValue = 0d)
class B {
}
@FloatingPointValuedAnnotation(floatValue = -0f)
class C {
}
@FloatingPointValuedAnnotation(floatValue = 0f)
class D {
}
public static void main(String[] args) {
System.out.println(A.class.getAnnotation(FloatingPointValuedAnnotation.class)
.equals(B.class.getAnnotation(FloatingPointValuedAnnotation.class)));
System.out.println(C.class.getAnnotation(FloatingPointValuedAnnotation.class)
.equals(D.class.getAnnotation(FloatingPointValuedAnnotation.class)));
}
}