mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-17 23:49:39 +08:00
CompareNaN.java: New test.
* libjava.lang/CompareNaN.java: New test. * libjava.lang/CompareNaN.out: New test. From-SVN: r63003
This commit is contained in:
parent
db77ef4c93
commit
ba5d2d3dc1
@ -1,3 +1,8 @@
|
||||
2003-02-16 Jeff Sturm <jsturm@one-point.com>
|
||||
|
||||
* libjava.lang/CompareNaN.java: New test.
|
||||
* libjava.lang/CompareNaN.out: New test.
|
||||
|
||||
2003-02-16 Mark Wielaard <mark@klomp.org>
|
||||
|
||||
* libjava.mauve/xfails: Add Class.reflect2 and String.getBytes FAILs.
|
||||
|
15
libjava/testsuite/libjava.lang/CompareNaN.java
Normal file
15
libjava/testsuite/libjava.lang/CompareNaN.java
Normal file
@ -0,0 +1,15 @@
|
||||
/*
|
||||
* JLS 4.2.3 specifies that (x op y) must be false if either x or y
|
||||
* is NaN and op is one of <, >, <=, >=, or ==.
|
||||
*
|
||||
* Some targets may need specific options wired into libgcj.spec
|
||||
* to pass this test. For example, alpha-linux requires -mieee
|
||||
* to prevent an unrecoverable fp trap.
|
||||
*/
|
||||
|
||||
public class CompareNaN {
|
||||
public static void main(String[] args) {
|
||||
double x = Double.NaN;
|
||||
System.out.println(x == x);
|
||||
}
|
||||
}
|
1
libjava/testsuite/libjava.lang/CompareNaN.out
Normal file
1
libjava/testsuite/libjava.lang/CompareNaN.out
Normal file
@ -0,0 +1 @@
|
||||
false
|
Loading…
Reference in New Issue
Block a user