Index: /export/users2/ichebyki/workspace-e3.2.1/Harmony/working_vm/src/test/regression/H2773/nan.java =================================================================== --- /export/users2/ichebyki/workspace-e3.2.1/Harmony/working_vm/src/test/regression/H2773/nan.java (revision 0) +++ /export/users2/ichebyki/workspace-e3.2.1/Harmony/working_vm/src/test/regression/H2773/nan.java (revision 0) @@ -0,0 +1,21 @@ +package org.apache.harmony.drlvm.tests.regression.H2773; + +import junit.framework.TestCase; + +public class nan extends TestCase { + public void testNan() throws Exception { + double a = -1.0d; + double b = 0.0d; + double c; + double a2 = 1.0d; + double b2 = -0.0d; + + c = a / b; + System.out.println(c); + assertEquals(Double.NEGATIVE_INFINITY, c); + + c = a2 / b2; + System.out.println(c); + assertEquals(Double.NEGATIVE_INFINITY, c); + } +} \ No newline at end of file Index: /export/users2/ichebyki/workspace-e3.2.1/Harmony/working_vm/src/test/regression/H2773/run.test.xml =================================================================== --- /export/users2/ichebyki/workspace-e3.2.1/Harmony/working_vm/src/test/regression/H2773/run.test.xml (revision 0) +++ /export/users2/ichebyki/workspace-e3.2.1/Harmony/working_vm/src/test/regression/H2773/run.test.xml (revision 0) @@ -0,0 +1,9 @@ + + + + + + +