gcc/libjava/testsuite/libjava.lang/pr25676.java
Tom Tromey 05d8200d79 re PR java/25676 (Use of MIN_EXPR/MAX_EXPR is wrong for java)
gcc/java
	PR java/25676:
	* builtins.c (max_builtin): Skip floating point 'max'.
	(min_builtin): Skip floating point 'min'.
	(check_for_builtin): Never return NULL_TREE.
libjava
	PR java/25676:
	* testsuite/libjava.lang/pr25676.out: New file.
	* testsuite/libjava.lang/pr25676.java: New file.

From-SVN: r110599
2006-02-04 23:34:06 +00:00

13 lines
229 B
Java

public class pr25676
{
public static double g(double a, double b)
{
return Math.min(a, b);
}
public static void main(String a[])
{
System.out.println (g(0.0, -0.0));
System.out.println (g(-0.0, 0.0));
}
}