From 05d8200d79f284ba5cf5e552183fae438e4f3bf7 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Sat, 4 Feb 2006 23:34:06 +0000 Subject: 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 --- libjava/ChangeLog | 6 ++++++ libjava/testsuite/libjava.lang/pr25676.java | 12 ++++++++++++ libjava/testsuite/libjava.lang/pr25676.out | 2 ++ 3 files changed, 20 insertions(+) create mode 100644 libjava/testsuite/libjava.lang/pr25676.java create mode 100644 libjava/testsuite/libjava.lang/pr25676.out (limited to 'libjava') diff --git a/libjava/ChangeLog b/libjava/ChangeLog index bdb0a89..970d975 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,9 @@ +2006-02-04 Tom Tromey + + PR java/25676: + * testsuite/libjava.lang/pr25676.out: New file. + * testsuite/libjava.lang/pr25676.java: New file. + 2006-02-03 Thomas Fitzsimmons * Makefile.am (src.zip): Update src.zip file search to look in diff --git a/libjava/testsuite/libjava.lang/pr25676.java b/libjava/testsuite/libjava.lang/pr25676.java new file mode 100644 index 0000000..e79a2c2 --- /dev/null +++ b/libjava/testsuite/libjava.lang/pr25676.java @@ -0,0 +1,12 @@ +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)); + } +} diff --git a/libjava/testsuite/libjava.lang/pr25676.out b/libjava/testsuite/libjava.lang/pr25676.out new file mode 100644 index 0000000..e6ffe0d --- /dev/null +++ b/libjava/testsuite/libjava.lang/pr25676.out @@ -0,0 +1,2 @@ +-0.0 +-0.0 -- cgit v1.1